Add a warning for deprecated commands
Metadata
Current evaluation
Warnings landed in #5341 and #5524 for Snapcraft 8.10; commit 3623601d7 removed the deprecated commands in Snapcraft 9.
Resolution: closed resolved
Reason: PRs #5341 and #5524 implemented permanent warnings for the listed aliases. Commit 3623601d7 later removed those deprecated commands for Snapcraft 9/core26; the default-command warning had been removed from scope because it required upstream craft-cli work.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### What needs to get done
For the following commands, add a deprecation notice and recommend the alternative:
command | replacement
-- | --
snapcraft list | snapcraft names
snapcraft list-registered | snapcraft names
snapcraft login --experimental-login | SNAPCRAFT_STORE_AUTH=candid
snapcraft export-login --experimental-login | SNAPCRAFT_STORE_AUTH=candid
~~snapcraft~~ | ~~snapcraft pack~~
snapcraft extensions | snapcraft list-extensions
snapcraft plugins | snapcraft list-plugins
snapcraft tracks | snapcraft list-tracks
snapcraft revisions | snapcraft list-revisions
snapcraft push | snapcraft upload
snapcraft snap | snapcraft pack
### Why it needs to get done
These commands are scheduled to be removed in a future version of Snapcraft.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Warnings landed in #5341 and #5524 for Snapcraft 8.10; commit 3623601d7 removed the deprecated commands in Snapcraft 9. | |
| stealth/space-bunny-alpha | — | closed superseded | Warnings landed in #5341 and #5524; remaining work was deferred to Snapcraft 9/core26, where commit 3623601d7 removed the old commands. | |
| stealth/space-bunny-alpha | — | closed superseded | Deprecation warnings were deferred to Snapcraft 9's core26 work; cleanup #5674 then removed the legacy commands in commit 3623601d7. | |
| qwen/qwen3.6-35b-a3b | — | — | Superseded by a future release. Deprecation warnings for listed commands will be added in Snapcraft 9 (April 2026) alongside core26 support, except the default command requiring upstream craft-cli updates. Closed as planned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed. Deprecation warnings and command removals are scheduled for the April 2026 Snapcraft 9 release. One warning was postponed pending upstream craft-cli updates. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed and deferred. Deprecation warnings were not implemented. Maintainers set a removal timeline for April 2026 (Snapcraft 9) and noted the default command warning requires upstream craft-cli updates. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/snapcraft#5341
(confidence 99%)
Merged as a80f446d2, making list and list-registered warnings permanent.
-
Likely Fixed By:
canonical/snapcraft#5524
(confidence 99%)
Merged as 1996340d9, adding deprecation warnings for hidden command aliases.
-
Superseded By:
canonical/snapcraft#5525
(confidence 96%)
The unimplementable default-command warning was moved out to a separate issue.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #6022 Remove errors for removed commands | snapcraft | open | Triaged Snapcraft 10 cleanup to remove temporary errors and hidden shims for commands deprecated in Snapcraft 8; still pending in the Snapcraft 9 codebase. | |
| #1656265 deprecation notices should be on the guide | snapcraft (launchpad) | closed | Updated deprecation notices to point to the consolidated Snapcraft documentation in snapcore/snapcraft PR #1048 (commit bfd896a11). | |
| #5711 Reverse deprecation warnings for `list-` commands | snapcraft | closed | Closed unimplemented after an automated SNAPCRAFT-1210 sync notice; related #5428 later tracked removal of deprecated commands in commit 3623601d7. | |
| #6035 chore!: remove deprecated commands | snapcraft | merged | Merged as 3623601d7, removing deprecated Snapcraft commands and options and resolving #5674 (SNAPCRAFT-1196). | |
| #5427 Add a deprecation notice for building core22 snaps with the legacy remote builder | snapcraft | closed | Added the core22 legacy remote-builder deprecation warning in Snapcraft 8.10 via merged PR #5523 (commit 1d8e87486). | |
| #153 Obsolete deprecations from 1.x | snapcraft | merged | Merged PR #153 as commit a4d8464, removing obsolete Snapcraft 1.x deprecation code and messages across 18 files. | |
| #5523 chore: add deprecation warning for legacy remote builder | snapcraft | merged | Merged #5523 in commit 1d8e87486, adding a core22 legacy remote-builder deprecation warning in Snapcraft 8.10 and fixing #5427. | |
| #3396 snap: address snapcraft warnings for app command | snapcraft | merged | Merged PR #3396 as commit 524dd9811, applying a one-line fix to address Snapcraft warnings for the app command. | |
| #5673 Remove default command, `snapcraft` | snapcraft | closed | PR #6074 removed bare `snapcraft` in db7c53f21, but PR #6178 reverted it in e5aaf0683. Removal was deferred to core28 planning, leaving the deprecated command intact. | |
| #5340 `snapcraft list` overwrites its deprecation warning with the output of `snapcraft names` | snapcraft | closed | Fixed by merged PR canonical/snapcraft#5341 (a80f446d2), making deprecation warnings permanent for list and list-registered; documented in Snapcraft 8.7.3. |