← Back to issue list

try to snapcraft release an unexisting revision shows the wrong error

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1604810
Type
issue
State
open
Author
~elopio
Labels
bitesize
Created
Updated
Closed
—

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

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.
78%
#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.
78%
#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.
75%
#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.
75%
#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.
75%