Remove all snapcraftctl code and compatibility wrapper for core22
Metadata
Current evaluation
Maintainers closed the proposed removal of deprecated snapcraftctl code for core22 and core24 without merging. The change was rejected to prevent breaking existing builds.
Suggested action: —
No scores available.
Issue body
This PR removes all code related to snapcraftctl in core22, as snapcraftctl has been deprecated in favor of craftctl.
Fixes (#5754)
### Changes Made:
- Remove snapcraftctl CLI module and related code
- Delete legacy test cases testing snapcraftctl functionality
- Update schema defaults from `snapcraftctl` to `craftctl default`
- Update plugin documentation to reference `craftctl`
- Update error messages to use `craftctl set version`
- Clean up remaining snapcraftctl variables and references
### What's Preserved:
- Documentation explaining the migration from snapcraftctl to craftctl
- Test files for older bases (core20, core) where snapcraftctl is still supported
Resolves the core22 deprecation of snapcraftctl in favor of craftctl.
---
- [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`?
---
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Maintainers closed the proposed removal of deprecated snapcraftctl code for core22 and core24 without merging. The change was rejected to prevent breaking existing builds. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed and rejected. Maintainers decided against removing snapcraftctl for core22 and core24 to prevent breaking existing builds. Related issue #5754 was also closed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Rejected and closed alongside issue #5754. Maintainers decided against removing snapcraftctl for core22 and core24 to avoid breaking existing builds, deferring migration enforcement to issue #5782. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5754 Remove the `snapcraftctl` compatibility wrapper | snapcraft | closed | Abandoned. Maintainers closed the request to remove the snapcraftctl compatibility wrapper, retaining it to prevent breaking existing builds for core22 and core24. | |
| #3751 craftctl: add snapcraftctl compatibility wrapper | snapcraft | merged | Merged a snapcraftctl compatibility wrapper into craftctl to ease the core22 transition. The wrapper outputs an update message and includes spread tests. Approved by reviewer, passed CI, and merged into main. | |
| #5983 feat!: error on snapcraftctl | snapcraft | merged | Merged. Introduces a breaking change that errors on snapcraftctl usage in core26+ override scripts and renames all internal references. Legacy binaries are deferred to a follow-up PR, with core22/24 example updates planned for a future release. |