← Back to issue list




Found argument '--channel' which wasn't expected, or isn't valid in this context

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1825062
Type
issue
State
closed
Author
~popey
Labels
—
Created
Updated
Closed

Current evaluation

Fixed rust-channel handling by replacing obsolete rustup.sh --channel usage; PR canonical/snapcraft#2538 merged as 4eb089546.

Resolution: closed resolved

Reason: Merged PR canonical/snapcraft#2538 fixed Rust plugin toolchain setup by using rustup instead of the obsolete rustup.sh --channel argument. The change landed in commit 4eb089546.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Possibly related to bug #1809259. I'm using this yaml https://pastebin.com/Gz507Ak7 But with "rust-channel: nightly" in the part. I get:- Pulling ncspot Cloning into '/root/parts/ncspot/src'... remote: Enumerating objects: 305, done. remote: Counting objects: 100% (305/305), done. remote: Compressing objects: 100% (102/102), done. remote: Total 1138 (delta 218), reused 284 (delta 203), pack-reused 833 Receiving objects: 100% (1138/1138), 491.96 KiB | 1.34 MiB/s, done. Resolving deltas: 100% (769/769), done. Downloading 'rustup.sh'[==========================================================================================================================================================] 100% /root/.cargo/rustup.sh -y --no-modify-path --channel nightly info: downloading installer error: Found argument '--channel' which wasn't expected, or isn't valid in this context

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed rust-channel handling by replacing obsolete rustup.sh --channel usage; PR canonical/snapcraft#2538 merged as 4eb089546.
stealth/space-bunny-alpha — closed resolved Snapcraft's Rust plugin was fixed to pass rust-channel correctly. Resolved by merged PR snapcore/snapcraft#2538 in commit 4eb089546.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #2538: rust-channel no longer passes obsolete --channel to rustup.sh, and toolchain installation was unified.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The rustup '--channel' argument error was likely superseded by upstream rustup version changes or abandoned due to inactivity.
qwen/qwen3.6-35b-a3b — — Closed without resolution or comments. The rustup --channel flag error was not addressed, indicating the report was abandoned or resolved by the author.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The rustup --channel argument error was abandoned or superseded by upstream rustup changes, with no fix or discussion recorded.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The report details a rustup CLI error when specifying rust-channel: nightly in a YAML config. No comments or fixes were recorded.
qwen3.6-35b-a3b-mtp-q6 — — Abandoned and closed without resolution or comments. The report detailed an unexpected '--channel' argument error when setting rust-channel: nightly in a snapcraft yaml.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#2538 (confidence 100%)

    The linked PR directly corrected rust-channel handling and was merged.

Related issues

Issue Project State Summary Similarity
#2538 rust plugin: fix usage of rust-channel snapcraft merged Merged PR #2538 fixed Rust plugin toolchain setup by using rustup instead of the obsolete rustup.sh --channel argument; resolving commit: 4eb089546.
72%