fix(cli): pin clap_derive version (#1381)

When `clap_derive 3.0.0-beta.4` released, new invocations of `cargo install sqlx-cli` would try to compile that against `clap 3.0.0-beta.2` which caused some breakages.

Until `clap 3.0.0` proper is released, we need to pin both versions to insure against potential breakages from automatic upgrades.

closes #1378
This commit is contained in:
Austin Bonander
2021-08-16 16:51:31 -07:00
committed by GitHub
parent dd27aa0587
commit 38435ca647
2 changed files with 9 additions and 4 deletions

View File

@@ -34,7 +34,11 @@ sqlx = { version = "0.5.5", path = "..", default-features = false, features = [
"offline",
] }
futures = "0.3"
# FIXME: we need to fix both of these versions until Clap 3.0 proper is released, then we can drop `clap_derive`
# https://github.com/launchbadge/sqlx/issues/1378
# https://github.com/clap-rs/clap/issues/2705
clap = "=3.0.0-beta.2"
clap_derive = "=3.0.0-beta.2"
chrono = "0.4"
anyhow = "1.0"
url = { version = "2.1.1", default-features = false }