← Back to issue list

"Environment validation failed for part 'xsv': 'cargo' not found" with `base: core22`

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1990950
Type
issue
State
open
Author
~saviq
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action: needs triage

Reason: The issue has no labels, no maintainer comments, and no assignee after 1114 days. The error message is clear ('cargo not found and part does not depend on rust-deps'), but it's unclear whether this is a user configuration error, a missing feature in snapcraft's core22 support, or a legitimate bug. Without maintainer assessment, the appropriate action is triage to determine if this is still reproducible in current snapcraft versions and whether it requires a fix or documentation.

Impact: 60 Quick Win: 36.0 Staleness: 85 Complexity: 40 Confidence: 65 Support Request: 50

Issue body

1. git clone https://github.com/snapcraft-docs/xsv.git 2. cd xsv 3. sed -i 's/base:.*/base: core22/' snapcraft.yaml 4. snapcraft Launching instance... Environment validation failed for part 'xsv': 'cargo' not found and part 'xsv' does not depend on a part named 'rust-deps' that would satisfy the dependency. Full execution log: '/tmp/snapcraft.log' Traceback (most recent call last): File "/snap/snapcraft/8187/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 448, in _run_in_provider instance.execute_run(cmd, check=True, cwd=output_dir) File "/snap/snapcraft/8187/lib/python3.8/site-packages/craft_providers/lxd/lxd_instance.py", line 289, in execute_run return self.lxc.exec( File "/snap/snapcraft/8187/lib/python3.8/site-packages/craft_providers/lxd/lxc.py", line 329, in exec return runner(final_cmd, **kwargs) # pylint: disable=subprocess-run-check File "/snap/snapcraft/8187/usr/lib/python3.8/subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['lxc', '--project', 'snapcraft', 'exec', 'local:snapcraft-xsv-on-amd64-for-amd64-479080', '--cwd', '/root/project', '--', 'env', 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin', 'SNAPCRAFT_MANAGED_MODE=1', 'snapcraft', 'pack', '--build-for', 'amd64']' returned non-zero exit status 1.

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 60
Quick Win: 36.0
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.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 25
Confidence: 85
Support Request: 10
close stale Snapcraft build fails with core22 base due to missing cargo dependency. Unlabelled, zero comments, and inactive for nearly three years.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.