Warn if `--platform` is used for remote builds
Metadata
Current evaluation
Remote-build still rejects removed --platform input without clear migration guidance; triaged issue remains open because PR #6453 was closed unmerged.
Suggested action: keep open
Reason: The Triaged enhancement explicitly requires a clear error directing remote-build users from --platform to --build-for. The current command parser registers --build-for but not --platform, while PR #6453 implemented the requested behavior yet was closed without merging, so the issue remains valid but needs a new or reopened implementation.
Evaluated by: mr-cal-bot
Impact:
35
Quick Win:
26
Complexity:
20
Confidence:
97
Actionability:
92
Issue body
### What needs to get done
Snapcraft should error when `--platform` is used with remote-build and recommend using `--build-for`.
### Why it needs to get done
`--platform` was dropped in Snapcraft 8.7.0 because it rarely worked as expected. The only deprecation notices were in the release notes and forum, not in Snapcraft itself.
Based on feedback from @simondeziel
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
35
Quick Win:
26
Complexity:
20
Confidence:
97
Actionability:
92
|
keep open | Remote-build still rejects removed --platform input without clear migration guidance; triaged issue remains open because PR #6453 was closed unmerged. | |
| stealth/space-bunny-alpha |
Impact:
35
Quick Win:
22
Complexity:
18
Confidence:
72
Actionability:
78
|
keep open | Enhancement (triaged): make `snapcraft remote-build --platform ...` fail with a clear error recommending --build-for instead of argparse's 'unrecognized arguments'. Fix PR #6453 was closed unmerged; still unimplemented. | |
| stealth/space-bunny-alpha |
Impact:
38
Quick Win:
30
Complexity:
16
Confidence:
98
Actionability:
94
|
keep open | Enhancement is triaged with open PR #6453 adding a clear resolution recommending --build-for when --platform is used with remote-build; awaiting merge. | |
| stealth/space-bunny-alpha |
Impact:
22
Quick Win:
17
Complexity:
12
Confidence:
88
Actionability:
88
|
keep open | Enhancement: remote-build should error helpfully when --platform is used, pointing to --build-for (--platform was dropped in 8.7.0). Open PR #6453 adds the hidden arg + resolution but is not yet merged. | |
| qwen/qwen3.6-35b-a3b |
Impact:
30
Quick Win:
19
Complexity:
20
Confidence:
80
Actionability:
80
|
keep open | Enhancement to add a helpful error when --platform is used with remote-build, recommending --build-for instead. Triaged but not yet implemented. | |
| qwen/qwen3.8-27b |
Impact:
40
Quick Win:
32
Staleness:
70
Complexity:
20
Confidence:
75
Support Request:
0
|
keep open | Enhancement: make snapcraft remote-build error when --platform is passed and recommend --build-for, since --platform was dropped in 8.7.0 with no in-tool notice. Triaged by maintainer; no implementation yet. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
90
Complexity:
15
Confidence:
85
Support Request:
0
|
keep open | Enhancement to warn or error when --platform is used with remote-build, directing users to --build-for instead. Currently triaged but inactive for over 15 months. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
10
Confidence:
60
Support Request:
0
|
close stale | Enhancement to add a warning when the deprecated --platform flag is used with remote builds. Triaged but inactive for 455 days with no progress or maintainer engagement. |
Update history
| Date | Change |
|---|---|
| updated | |
| updated |
Related work
-
Related To:
canonical/snapcraft#6453
(confidence 100%)
PR #6453 attempted the exact requested error and resolution, but was closed unmerged.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #6453 fix(remote-build): error with a resolution when '--platform' is used | snapcraft | closed | PR #6453 proposed clearer remote-build --platform guidance pointing to --build-for, but was closed unmerged after no review; issue #5387 remains open. | |
| #4881 remote build: fails if `--platform` or `--build-for` are passed with no `platforms` or `architectures` defined | snapcraft | closed | Closed without implementation after CRAFT-3070 recorded the intended scope; no resolving PR or commit was linked. |