Cargo runtime package discovery panics for cargo run unit graphs
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rust
- Domain
- build-system
Research direction
Start with runtime_profile.rs::discovery_args and the reported cargo/src/ops/cargo_run.rs:95:5 assertion. Reproduce the unit-graph behavior with the pinned nightly, then check how graph-only selectors behave for run/r, including the selector and argument cases listed in the issue. Done means a real Cargo integration witness covers those cases while the producer gate and managed compilation behavior remain intact.
Written by the indexing model from the issue text.
Description
Observed in ngspice-rs-preprocess serial validation job 207 (#167), nightly-2026-11-26. Workspace/all-target and native reference tests passed, then the managed launcher failed before executing the first example. Diagnostic: Cargo runtime dependency discovery failed; cargo/src/ops/cargo_run.rs:95:5 assertion left 0 right 1. The source verifier calls cargo run --config --locked -p model-translate-simplis --example logic_ngspice -- . runtime_profile.rs::discovery_args keeps the run subcommand and appends -Zunstable-options --unit-graph; Cargo run expects an actual built executable, but unit graph mode returns none. Qualify equivalent graph-only selectors for run/r, including explicit bin/example, implicit default-run, single-bin and ambiguous multi-bin cases, feature/target/config selectors and arguments after --. Do not silently broaden the active package closure, bypass managed compilation or change downstream tests. Add a real Cargo integration witness on pinned nightly. The producer gate must remain intact.
- Dominant language
- Rust
- Stars
- 8k
- Forks
- 835
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 60
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla/sccache
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
sccache-dist: Docker builder hangs indefinitely — `docker cp -` is never sent EOFPossibly taken @oguzhanmeteozturk claimed this 114 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mozilla/sccache#437 · 3 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 56/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Commit lockfileOpen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
rust-lang/socket2#703 · 1 comment ·
Maintainers usually reply within 1 day
-
infra
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
available bug good first issue tooling
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Nixitov/Riptide-Native#817 ·
Maintainers usually reply within 1 day