Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support non-crates.io registry #428

Open
droundy opened this issue Oct 30, 2024 · 1 comment
Open

support non-crates.io registry #428

droundy opened this issue Oct 30, 2024 · 1 comment

Comments

@droundy
Copy link

droundy commented Oct 30, 2024

I'm getting errors like:

FAILED   Unmutated baseline in 0.1s build

*** baseline

*** /Users/davidroundy/.rustup/toolchains/1.81.0-aarch64-apple-darwin/bin/cargo test --no-run --verbose --manifest-path /var/folders/px/x2xgpg_x7bn0l2tjmp3zgc6c0000gp/T/cargo-mutants-sludge-7A248M.tmp/Cargo.toml
error: failed to parse manifest at `/var/folders/px/x2xgpg_x7bn0l2tjmp3zgc6c0000gp/T/cargo-mutants-sludge-7A248M.tmp/Cargo.toml`

Caused by:
  registry index was not found in any configuration: `nextroll`

*** result: Failure(101)

ERROR cargo build failed in an unmutated tree, so no mutants were tested

Maybe the code just needs to copy .cargo/config.toml where the registry is defined?

@sourcefrog
Copy link
Owner

sourcefrog commented Oct 31, 2024

Can you try with --in-place and see if that fixes it? That would confirm whether it's related to copying.

From memory and from glancing at https://github.com/sourcefrog/cargo-mutants/blob/main/src/copy_tree.rs, we're not excluding .cargo.

Also, is there any open/public alternative registry that I could test against? Or in general, a public reproduction would help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants