← Back to issue list

Rust plugin broke in the last few days

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1809259
Type
issue
State
closed
Author
~popey
Labels
19.04-blue
Created
Updated
Closed

Current evaluation

Closed without resolution. The rust plugin failed due to an invalid --prefix argument passed to rustup-init, indicating a compatibility break with upstream rustup updates.

Suggested action:

No scores available.

Issue body

I previously successfully built a snap which uses the rust plugin. https://github.com/popey/shellharden/tree/add-snapcraft - 3 days later it no longer builds. I have confirmed this on two computers, and a colleague has repeated the issue. I'm using snapcraft from stable with multipass. error: Found argument '--prefix' which wasn't expected, or isn't valid in this context USAGE: rustup-init [FLAGS] [OPTIONS] For more information try --help Failed to run '/root/parts/shellharden/rust/rustup.sh --prefix=/root/parts/shellharden/rust --disable-sudo --save --channel=stable' for 'shellharden': Exited with code 1. Verify that the part is using the correct parameters and try again. Run the same command again with --debug to shell into the environment if you wish to introspect this failure. An error occurred when trying to execute 'sudo -i snapcraft snap' with 'multipass': returned exit code 2.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution. The rust plugin failed due to an invalid --prefix argument passed to rustup-init, indicating a compatibility break with upstream rustup updates.
qwen/qwen3.6-35b-a3b Closed without resolution. The rust plugin regression causing rustup-init to fail with an unexpected --prefix argument was abandoned.
qwen/qwen3.6-35b-a3b Closed without resolution or comments, likely abandoned due to inactivity. The Rust plugin build failure caused by an invalid rustup-init --prefix argument was never fixed.
qwen3.6-35b-a3b-mtp-q6 Closed without comments or resolution, likely abandoned. The snapcraft Rust plugin build failed because rustup-init rejected the --prefix flag. No fix or follow-up was provided.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1120 Update rustup link. Bug: 1662960 snapcraft closed Closed and abandoned after tests failed due to upstream rustup changes removing install prefix support. The contributor plans to coordinate fixes upstream before resubmitting.
72%
#1467 rust plugin: new rustup snapcraft closed Closed without resolution or comments, likely abandoned or superseded by subsequent snapcraft updates. No merge details or discussion were provided.
70%
#1662960 Rust plugin using old rustup link snapcraft (launchpad) closed The Rust plugin outdated rustup link report was abandoned and closed. The author offered to submit a pull request to update the URL, but no fix was implemented or merged.
70%