chore: add deprecation warnings for hidden commands
Metadata
Current evaluation
Merged as commit 1996340d9 via #5524, adding uniform deprecation warnings for hidden commands and redirecting reference docs; default-command warning remained in #5525.
Resolution: closed resolved
Reason: PR #5524 was approved and merged as commit 1996340d9, fixing #5428 by warning on hidden deprecated commands and redirecting their reference pages. The excluded default-command warning was tracked separately in #5525.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you followed the [guidelines for contributing](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `make lint`?
- [x] Have you successfully run `make test`?
---
#### Changes
* Adds a uniform deprecation warning for all deprecated commands.
* Hides and redirects reference pages for hidden commands.
#### What is not covered
* A deprecation warning for the default command (`snapcraft` defaulting to `snapcraft pack`). See #5525.
Fixes #5428
(SNAPCRAFT-1048)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged as commit 1996340d9 via #5524, adding uniform deprecation warnings for hidden commands and redirecting reference docs; default-command warning remained in #5525. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged as commit 1996340d9 via #5524, adding uniform deprecation warnings for hidden commands and hiding/redirecting their reference pages. Default-command warnings remain excluded. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged after approval by two reviewers. The update adds uniform deprecation warnings for hidden commands and redirects their reference pages, resolving issue #5428 across 17 files. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged as a squash commit. Adds uniform deprecation warnings for deprecated commands and hides or redirects reference pages for hidden commands, resolving issue #5428. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/snapcraft#5428
(confidence 100%)
PR #5524 explicitly fixes the request to warn about deprecated commands.
-
Related To:
canonical/snapcraft#5525
(confidence 100%)
The default-command deprecation warning was intentionally excluded and tracked here.
-
Related To:
canonical/snapcraft#5341
(confidence 95%)
Earlier merged work added permanent warnings for the list and list-registered commands.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5540 chore: resolve deprecation warnings | snapcraft | merged | Merged PR #5540 as commit 93e9c9237, fixing deprecation warnings and closing #5539. | |
| #5094 chore: fix deprecation warnings | snapcraft | merged | Merged PR #5094 in commit 0633e5a65, fixing library deprecation warnings across five files (+16/-14 lines). | |
| #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. |