Skip to content

Commit

Permalink
Set cwd for cargo metadata so it can find .cargo/config.toml
Browse files Browse the repository at this point in the history
Fixes #428
  • Loading branch information
sourcefrog committed Jan 5, 2025
1 parent 5b1afce commit 4166909
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

- Changed: Show more type parameters in mutant names, like `impl From<&str> for Foo` rather than `impl From for Foo`.

- Fixed: Support crates that use a non-default Cargo registry. Previously, `cargo metadata` failed with "registry index was not found."

## 25.0.1-pre3 2025-01-05

- Fixed: Build arm64 binaries for macOS.
Expand Down
1 change: 1 addition & 0 deletions src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ impl Workspace {
let metadata = cargo_metadata::MetadataCommand::new()
.no_deps()
.manifest_path(&manifest_path)
.current_dir(&dir)
.verbose(false)
.exec()
.with_context(|| format!("Failed to run cargo metadata on {manifest_path}"))?;
Expand Down

0 comments on commit 4166909

Please sign in to comment.