Add a warning for the default command
Metadata
Current evaluation
Closed without implementation. The deprecation warning enhancement remains blocked by upstream craft-cli changes and appears abandoned.
Suggested action: —
No scores available.
Issue body
### What needs to get done
Snapcraft should emit a deprecation warning if the default command is used (`snapcraft` defaults to `snapcraft pack`).
This requires upstream work in craft-cli, which is the most reliable place to [detect this](https://github.com/canonical/craft-cli/blob/7f1408f30b255ff9d05c1dcdeafbce82b445176b/craft_cli/dispatcher.py#L523-L531).
### Why it needs to get done
The default command is scheduled for removal in a future version of Snapcraft.
Blocked by #5425 and #5426
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The deprecation warning enhancement remains blocked by upstream craft-cli changes and appears abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The enhancement was abandoned as it remains blocked by upstream craft-cli changes and related issues. No fix or merge occurred. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Deferred to Jira ticket SNAPCRAFT-1149. The deprecation warning enhancement remains blocked by upstream craft-cli updates and related issues, with no implementation completed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Abandoned. The enhancement to emit a default command deprecation warning was closed without implementation, as it required upstream craft-cli updates and remained blocked by related issues. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5428 Add a warning for deprecated commands | snapcraft | closed | 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. | |
| #362 feat(dispatcher): add a warning for the default command | craft-cli | merged | Merged implementation that emits a warning when the default command is used. Approved by two reviewers, passed all CI checks, and unblocks related Snapcraft tracking issues. |