← 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

Merged PR #2431 updated the Rust plugin to use current rustup options, fixing builds that failed on the obsolete --prefix argument.

Resolution: closed resolved

Reason: PR #2431 was merged as commit 3e821ca8d, replacing the deprecated rustup invocation and resolving the reported plugin failure.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Merged PR #2431 updated the Rust plugin to use current rustup options, fixing builds that failed on the obsolete --prefix argument.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR snapcore/snapcraft#2431, which updated the Rust plugin for current rustup command-line options.
stealth/space-bunny-alpha — closed stale Closed without a recorded fix or maintainer explanation; the report concerned a rustup CLI incompatibility involving the unsupported --prefix option.
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

Date Change
created

Related work

  • Likely Fixed By: snapcraft#2431 (confidence 100%)

    The merged PR updated rustup command options and directly matches the final issue comment.

Related issues

Issue Project State Summary Similarity
#2431 rust plugin: update to use latest rustup command options snapcraft merged Merged PR #2431 updated the Rust plugin to use current rustup options instead of deprecated commands; landed as commit 3e821ca8d.
80%
#1467 rust plugin: new rustup snapcraft closed Updated the Rust plugin’s outdated rustup download link via merged PR #2438 (commit ea6caa72b), resolving LP bug #1662960.
79%
#2434 rust plugin: refactor to use the latest rustup snapcraft merged Merged PR #2434 in commit 3e821ca8d, updating the Rust plugin for current rustup, sharing toolchain storage, and adopting .cargo/config.
75%
#2438 rust plugin: new link for rustup snapcraft merged Merged PR #2438 (commit ea6caa72b) updating the Rust plugin's rustup download link, fixing LP bug #1662960 where the plugin used an outdated rustup URL.
74%
#1662960 Rust plugin using old rustup link snapcraft (launchpad) closed Rust plugin’s outdated rustup URL was updated by merged canonical/snapcraft#2438 (commit ea6caa72b), resolving the stale-link problem.
70%