"Environment validation failed for part 'xsv': 'cargo' not found" with `base: core22`
Metadata
Current evaluation
The core22 Rust plugin's false "cargo not found" failure is resolved: rustup support landed in Snapcraft #4297, followed by an explicit rust-deps validation fix in craft-parts 2.2.0.
Suggested action: close resolved
Reason: Snapcraft PR #4297 was merged as commit b357ef5e7, and the later craft-parts commit dc79714c (PR #903) explicitly improved Rust dependency validation. Craft-parts 2.2.0 and Snapcraft 8.6.0 document the rust-deps validation fix, and the current plugin handles rust-deps before validating cargo and rustc.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
40
Quick Win:
27
Complexity:
32
Confidence:
98
Actionability:
98
|
close resolved | The core22 Rust plugin's false "cargo not found" failure is resolved: rustup support landed in Snapcraft #4297, followed by an explicit rust-deps validation fix in craft-parts 2.2.0. | |
| stealth/space-bunny-alpha |
Impact:
45
Quick Win:
22
Complexity:
45
Confidence:
86
Actionability:
88
|
close resolved | Rust plugin on core22 failed env validation with "'cargo' not found" when using rust-deps; fixed in craft-parts (validation ordering) and shipped in Snapcraft 8.6.0. Issue left open since2023. | |
| stealth/space-bunny-alpha |
Impact:
40
Quick Win:
15
Complexity:
55
Confidence:
78
Actionability:
86
|
needs triage | Rust packaging for xsv on core22 fails because cargo is missing during plugin validation; the exact reproducer is reported, but the unlabelled issue remains unassessed. | |
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
60
Quick Win:
36
Staleness:
85
Complexity:
40
Confidence:
65
Support Request:
50
|
needs triage | Snapcraft fails with 'cargo not found' when building a Rust project with base: core22. Issue is unlabelled and has had no maintainer response in 1114 days. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
40
Confidence:
85
Support Request:
30
|
close stale | Report of snapcraft build failure with core22 base due to missing cargo dependency. Issue has been inactive for over 3 years with no maintainer response or labels. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
45
Confidence:
90
Support Request:
20
|
close stale | Snapcraft build fails with 'cargo' not found when using core22 base. Open for over 3 years with no maintainer interaction or updates. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
70
|
close stale | Snapcraft build fails with core22 base due to missing cargo dependency. No maintainer response or comments in over three years. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/craft-parts#903
(confidence 99%)
Commit dc79714c explicitly fixes Rust plugin dependency validation; the change is documented in craft-parts 2.2.0.
-
Related To:
canonical/craft-parts#890
(confidence 95%)
The Snapcraft changelog cites this craft-parts issue for the later rust-deps dependency-validation fix.
-
Likely Fixed By:
snapcraft#4297
(confidence 90%)
Merged as b357ef5e7; added rustup support and Rust plugin configuration after the reporter requested a fix.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1852545 rust plugin build fails due to wrong env var | snapcraft (launchpad) | closed | Fixed in snapcore/snapcraft#2849 (commit 0b2fdb72b) by separating CARGO_HOME and RUSTUP_HOME; the change was tracked as part of Snapcraft 3.10. |