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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e195948 commit 05d0fdd
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
@@ -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-pre2 2025-01-05

- Fixed: Build binaries into releases.
1 change: 1 addition & 0 deletions src/workspace.rs
Original file line number Diff line number Diff line change
@@ -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}"))?;

0 comments on commit 05d0fdd

Please sign in to comment.