refactor(sqlx-macros): Ignore deps when getting metadata for workspace root (#1823)

This commit is contained in:
LovecraftianHorror 2022-04-21 14:36:15 -05:00 committed by GitHub
parent ec15f6b30c
commit 826e63fc11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ impl Metadata {
let cargo = env("CARGO").expect("`CARGO` must be set");
let output = Command::new(&cargo)
.args(&["metadata", "--format-version=1"])
.args(&["metadata", "--format-version=1", "--no-deps"])
.current_dir(&self.manifest_dir)
.env_remove("__CARGO_FIX_PLZ")
.output()