try to snapcraft release an unexisting revision shows the wrong error
Metadata
Current evaluation
Maintainer-confirmed misleading error when releasing a nonexistent revision; store-specific behavior still needs clarification before implementation.
Suggested action: keep open
Reason: The report provides the exact misleading message, and maintainer ~kyrofa explicitly confirmed the behavior. The comment that it may be store-specific leaves the responsible backend and expected handling for each store unclear, so implementation should remain open pending that investigation.
Evaluated by: mr-cal-bot
Impact:
28
Quick Win:
11
Complexity:
42
Confidence:
84
Actionability:
66
Issue body
When I try to release a revision that doesn't exist, I get the following error:
Sorry, try `snapcraft register u1test20160920` before trying to release or choose an existing revision.
This has nothing to do with register. We should just say that the revision is wrong.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
28
Quick Win:
11
Complexity:
42
Confidence:
84
Actionability:
66
|
keep open | Maintainer-confirmed misleading error when releasing a nonexistent revision; store-specific behavior still needs clarification before implementation. | |
| stealth/space-bunny-alpha |
Impact:
27
Quick Win:
19
Complexity:
18
Confidence:
86
Actionability:
84
|
close resolved | Misleading register advice for a nonexistent release revision was confirmed; the hard-coded legacy message was removed by ffb164b7a after the store API moved to craft-store. | |
| qwen/qwen3.6-35b-a3b |
Impact:
30
Quick Win:
22
Complexity:
10
Confidence:
70
Actionability:
80
|
close resolved | snapcraft release shows misleading 'register' error for non-existent revision; likely resolved by craft-based rewrite | |
| qwen/qwen3.8-27b |
Impact:
15
Quick Win:
14
Staleness:
90
Complexity:
10
Confidence:
60
Support Request:
5
|
close stale | Misleading error when running snapcraft release with a non-existent revision: it suggests 'snapcraft register' instead of saying the revision is invalid. Filed by maintainer elopio in 2016, labelled bitesize, 0 comments, no activity for ~9.5 years; the legacy CLI has since been replaced by the craft-based rewrite. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
100
Complexity:
10
Confidence:
95
Support Request:
0
|
close stale | Reports a misleading error message when releasing a non-existent snap revision. The issue has been inactive for over 9 years and is highly likely outdated. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
15
Confidence:
90
Support Request:
5
|
close stale | Reports a misleading error message when releasing a non-existent snap revision. Suggests updating the error to clearly state the revision is invalid. No maintainer interaction or activity in over 9 years. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
15
Confidence:
85
Support Request:
5
|
close stale | Releasing a non-existent snap revision shows a misleading error suggesting registration. Unaddressed for over 9 years with zero maintainer interaction. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Duplicate Of:
snapcraft (launchpad)#1664704
(confidence 94%)
Its title identifies the same misleading release error for a nonexistent revision.
-
Related To:
snapcraft (launchpad)#1999038
(confidence 84%)
Its title reports snapcraft release failing on an invalid revision value.
-
Related To:
snapcraft (launchpad)#2059787
(confidence 84%)
Its title reports inaccurate release output for an invalid revision.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1664704 snapcraft release gives misleading error when revision does not exist | snapcraft (launchpad) | open | The legacy snapcraft release error wrongly advised registering an already-registered snap; that obsolete code path was removed in ffb164b7a, and current releases use craft-store. | |
| #2059787 inaccurate error output in snapcraft release if given invalid revision | snapcraft (launchpad) | open | Valid CLI parsing bug: an invalid revision makes snapcraft release claim the release command does not exist; current code still uses type=int, and an exact duplicate remains open. | |
| #1999038 "snapcraft release" chokes given an invalid revision value | snapcraft (launchpad) | open | Confirmed parser bug: `snapcraft release mysnap fubar` reports "No such command 'release'" instead of a bad-revision error. Reproduced by mr-cal on 7.2.9, labeled craft-1532, still open with no fix. | |
| #4401 misleading error message on "release" if mandatory arguments are missing | snapcraft | closed | `snapcraft release` now reports missing required arguments or invalid revision types instead of falsely claiming the release command does not exist. | |
| #1604815 The error when trying to release a revision that's not a integer is ugly | snapcraft (launchpad) | closed | Invalid release revisions now produce a formatted user-facing StoreReleaseError; the fix merged in canonical/snapcraft#1599 (c7adb25f7) and shipped in Snapcraft 2.35. |