← Back to issue list

"snapcraft release" chokes given an invalid revision value

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1999038
Type
issue
State
open
Author
~rpjday
Labels
craft-1532
Created
Updated
Closed

Current evaluation

Issue about confusing error when 'snapcraft release' receives invalid revision. Stale for 1366 days with no maintainer response. The release command appears to have been removed or deprecated.

Suggested action: close stale

Reason: The issue is 1366 days old with zero comments or maintainer interaction. The 'release' command referenced in the issue appears to have been removed or deprecated (the issue body itself shows 'No such command release'), and snapcraft has undergone significant CLI restructuring via craft-application migration since then. The reported error handling issue is no longer applicable to the current codebase.

Impact: 10 Quick Win: 8.5 Staleness: 95 Complexity: 15 Confidence: 70 Support Request: 20

Issue body

If you provide an invalid revision value as below, you can see that "snapcraft release" does not even acknowledge the command it's running: $ snapcraft release mysnap fubar Usage: snapcraft [OPTIONS] COMMAND [ARGS]... Try 'snapcraft -h' for help. Error: No such command 'release'. $

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 10
Quick Win: 8.5
Staleness: 95
Complexity: 15
Confidence: 70
Support Request: 20
close stale Issue about confusing error when 'snapcraft release' receives invalid revision. Stale for 1366 days with no maintainer response. The release command appears to have been removed or deprecated.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 10
Confidence: 85
Support Request: 70
close stale User reports snapcraft release fails with No such command release when passing an invalid revision. Issue is 3.6 years old with no maintainer interaction or comments.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 10
close stale snapcraft release command fails with invalid revision, showing generic error instead of specific feedback. Issue is over 3 years old with no activity.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 15
Confidence: 90
Support Request: 20
close stale Report of snapcraft release command failing with an unhelpful error message when given invalid arguments. Issue is over 3.5 years old with no maintainer interaction or updates.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 10
close stale snapcraft release command fails with invalid revision argument, printing a missing command error instead of proper validation. Unaddressed for over 3.5 years.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/snapcraft#5117 (confidence 60%)

    Similar issue about removed CLI command (extension), suggesting pattern of command removal during craft-application migration

Related issues

Issue Project State Summary Similarity
#1664704 snapcraft release gives misleading error when revision does not exist snapcraft (launchpad) open snapcraft release shows misleading error suggesting 'snapcraft register' when the real problem is a non-existent revision. Filed 2016, 0 comments, no maintainer interaction; legacy CLI since replaced by craft-based rewrite.
82%
#1604810 try to snapcraft release an unexisting revision shows the wrong error snapcraft (launchpad) open 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.
81%
#2059787 inaccurate error output in snapcraft release if given invalid revision snapcraft (launchpad) open Bug report: snapcraft release shows misleading 'No such command release' error when given an invalid revision. Untriaged, 888 days old with no maintainer interaction.
80%
#1665003 Poor message when failing to specify a valid version snapcraft (launchpad) open Legacy snapcraft CLI showed a confusing error ('register ... before trying to release or choose an existing revision') when releasing a snap without a registered version. Reported ~9.5 years ago; no maintainer response; the current craft-based codebase no longer contains that message.
77%
#1904212 ValueError: No revision information for 1 snapcraft (launchpad) open snapcraft 4.4.1 'push' (deprecated) crashed with 'ValueError: No revision information for 1' after a successful upload/release, likely a store channel-map race. Open ~5.8 years, zero comments, no labels or maintainer response.
71%