← Back to issue list

Remove deprecated commands

View original Github issue

Metadata

Project
snapcraft
Number
#5674
Type
issue
State
closed
Author
mr-cal
Labels
Status: Triaged Type: Cleanup
Created
Updated
Closed

Current evaluation

Deprecated commands were removed in commit 3623601d7, with hidden replacements continuing to direct users to current commands.

Resolution: closed resolved

Reason: Commit 3623601d7 ("chore!: remove deprecated commands") removed the deprecated command paths while preserving guidance toward replacement commands.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done Remove the following deprecated commands or arguments: * export-login --experimental-login * list * list-registered * list-confdb-schemas * list-extensions * list-keys * list-plugins * list-tracks * list-revisions * list-validation-sets * login --experimental-login * login --with * push * snap (core22 and core24+) These commands still need to recommend the new command, so we can't entirely remove the code but I think we can sequester these commands in a new file `snapcraft/commands/deprecated.py`. This should include searching the codebase for any deprecated features missing from this list. ### Why it needs to get done These commands were deprecated in 8.10 via #5428 and will be removed in Snapcraft 9. edit: Updated the list based on https://github.com/canonical/snapcraft/issues/5711. This list of commands is likely to change again, so re-verify the list when implementing.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Deprecated commands were removed in commit 3623601d7, with hidden replacements continuing to direct users to current commands.
stealth/space-bunny-alpha — closed resolved Deprecated commands were removed in commit 3623601d7 (chore!: remove deprecated commands), completing the Snapcraft 9 cleanup.
stealth/space-bunny-alpha — closed resolved Deprecated commands were removed in commit 3623601d7 (“chore!: remove deprecated commands”), completing the Snapcraft 9 cleanup.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The cleanup task to sequester deprecated commands into a dedicated file remains unimplemented, with no pull request or follow-up submitted.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The cleanup task to sequester deprecated Snapcraft commands was abandoned or superseded by the Snapcraft 9 release cycle. No pull request was opened or merged.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The cleanup task to sequester deprecated Snapcraft commands was moved to an internal Jira ticket (SNAPCRAFT-1196) and abandoned. No code changes or pull requests were merged.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. The deprecated command cleanup was abandoned or deferred, as no pull request or fix was linked. Only an automated Jira ticket creation was recorded.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#5711 (confidence 90%)

    Its revised list of reverse-deprecated commands informed the cleanup.

  • Related To: snapcraft#5428 (confidence 85%)

    This earlier change deprecated the commands targeted for removal in Snapcraft 9.

Related issues

Issue Project State Summary Similarity
#1063 Remove deprecated APIs craft-application closed Deprecated APIs were removed by merged PR #1078 (3334f13e), with managed-command cleanup completed separately in PR #1077 (e00540d1).
74%