← Back to issue list

craftctl: add snapcraftctl compatibility wrapper

View original Github issue

Metadata

Project
snapcraft
Number
#3751
Type
pull request
State
merged
Author
cmatsuoka
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

No scores available.

Issue body

Add snapcraftctl wrapper to craftctl to make the transition to core22 easier. Execution of the wrapper displays a message encouraging the user to update to craftctl. Also add a spread test and fix existing core22 spread tests that were not being executed. Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com> - [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `make lint`? - [ ] Have you successfully run `pytest tests/unit`? ----- CRAFT-965

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b 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.
qwen3.6-35b-a3b-mtp-q6 Merged. Adds a snapcraftctl wrapper to craftctl for core22 transition, including spread test updates and fixes for unexecuted core22 tests.
qwen3.6-35b-a3b-mtp-q6 Merged into main. Adds a snapcraftctl compatibility wrapper to craftctl to ease the core22 transition, displaying a deprecation warning. Includes a new spread test and fixes previously unexecuted core22 spread tests.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#185 craftctl: update to comply with specification craft-parts merged Merged. Updated craftctl to comply with the specification, aligning default, set, and get commands with snapctl syntax, adding name validation, and enforcing consumption protection and single-part restrictions. Approved by reviewer.
80%
#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.
77%
#5774 Remove all snapcraftctl code and compatibility wrapper for core22 snapcraft closed Maintainers closed the proposed removal of deprecated snapcraftctl code for core22 and core24 without merging. The change was rejected to prevent breaking existing builds.
75%
#1091 docs: revamp craftctl how-to craft-parts merged Merged documentation update revamping the craftctl how-to guide using upstream Snapcraft content. Approved by two reviewers, CI checks passed after fixes, and changelog updated for a minor release prior to merge.
75%
#4118 init: use core22 base for `snapcraft init` snapcraft merged Merged. Updates snapcraft init to use core22 as the default base instead of core20. The command was relocated from snapcraft_legacy to snapcraft, and a spread test was added. Approved by reviewer and passed CI.
72%
#6048 docs: correct 'craftctl' to 'snapctl' in config doc snapcraft merged Merged a documentation fix correcting craftctl to snapctl in the config guide. Approved by two reviewers with passing CI checks. The update modifies one file.
72%
#2002 many: add snapcraftctl command for scriptlets snapcraft merged Merged. Adds snapcraftctl CLI for scriptlet-to-Snapcraft communication. Introduces snapcraftctl build for override-build, resolving #1675 and LP: #1751749. Approved with passing CI across 28 files.
72%
#3981 commands, lifecycle: provide snapcraft try for core22 snapcraft merged Merged. Adds snapcraft try support for core22 by mounting a host prime directory into the instance for lifecycle priming without packing. Approved by one reviewer, passed CI, and modified 8 files.
71%
#102 test: update craftctl test snapcraft-rocks merged Merged after two approvals and passing CI checks. Updates the spread test to validate the fix for snapcraft-rocks#33, modifying one file with seven added lines.
70%