Skip to content

Commit

Permalink
fix: Run cargo metadata with no-deps flag (#211)
Browse files Browse the repository at this point in the history
This is an attempt to restore the old behaviour of ``cargo chef prepare``
which would finish quickly and not need Git credentials for private repos.

Co-authored-by: Alex Silva <alex.silva@btcx.com>
  • Loading branch information
asandroq and Alex Silva authored Apr 21, 2023
1 parent 130d157 commit 9c33d3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/skeleton/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ fn serialize_manifests(manifests: Vec<ParsedManifest>) -> Result<Vec<Manifest>,
fn extract_cargo_metadata(path: &Path) -> Result<cargo_metadata::Metadata, anyhow::Error> {
let mut cmd = cargo_metadata::MetadataCommand::new();
cmd.current_dir(path);
cmd.no_deps();

cmd.exec().context("Cannot extract Cargo metadata")
}
Expand Down

0 comments on commit 9c33d3c

Please sign in to comment.