"Environment validation failed for part 'xsv': 'cargo' not found" with `base: core22`
Metadata
Current evaluation
Snapcraft fails with core22 base due to missing cargo dependency validation for Rust parts. Open with zero comments and over a year of inactivity, awaiting triage and assignment.
Suggested action: close stale
Reason: The issue is over 3.5 years old with no activity, and the base 'core22' is now legacy. The error message explicitly indicates a missing dependency configuration ('cargo' not found), suggesting the problem was likely due to user configuration rather than a tool bug, and the issue is no longer relevant to current versions.
Staleness:
95
Complexity:
20
Confidence:
85
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 |
|---|---|---|---|---|
| 2026-06-19 05:56:26.823644+00:00 | qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
20
Confidence:
85
Support Request:
50
|
close stale | Snapcraft fails with core22 base due to missing cargo dependency validation for Rust parts. Open with zero comments and over a year of inactivity, awaiting triage and assignment. |
| 2026-06-19 05:54:03.198702+00:00 | pending | — | — | — |