← Back to issue list

Remove the `snapcraftctl` compatibility wrapper

View original Github issue

Metadata

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

Current evaluation

Closed as won't-fix by mr-cal: snapcraftctl wrapper must stay for core22/core24 to avoid breaking existing builds. Implementation PR #5774 was closed unmerged; #5983 (eaadefa01) only makes core26 error on snapcraftctl.

Resolution: closed not a bug

Reason: Maintainer mr-cal closed the issue on 2026-01-29 after deciding removal would break existing core22/core24 builds, so the compatibility wrapper is intentionally kept. The proposed PR #5774 was closed unmerged; removal was later scoped to core26 only by merged PR #5983 (commit eaadefa01), documented in docs/release-notes/snapcraft-9-0.rst ("Core22 and core24 aren't affected by this change").

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done Remove all code related to `snapcraftctl`. ### Why it needs to get done Core22 has deprecated `snapcraftctl` in favor of `craftctl`. This legacy command and its code originally from core20 should be removed.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed not a bug Closed as won't-fix by mr-cal: snapcraftctl wrapper must stay for core22/core24 to avoid breaking existing builds. Implementation PR #5774 was closed unmerged; #5983 (eaadefa01) only makes core26 error on snapcraftctl.
stealth/space-bunny-alpha — closed not a bug Removal was rejected: the snapcraftctl wrapper remains for core22 and core24 to avoid breaking existing builds. Proposed PR #5774 was closed.
qwen/qwen3.6-35b-a3b — — Abandoned. Maintainers closed the request to remove the snapcraftctl compatibility wrapper, retaining it to prevent breaking existing builds for core22 and core24.
qwen/qwen3.6-35b-a3b — — Removing the snapcraftctl wrapper was abandoned. Maintainers closed the request to avoid breaking core22 and core24 builds, retaining the deprecated command despite its craftctl replacement.
qwen/qwen3.6-35b-a3b — — Abandoned. Maintainers retained the snapcraftctl compatibility wrapper to prevent breaking existing builds on core22 and core24, closing the issue without implementation.
qwen/qwen3.6-35b-a3b — — Abandoned. The snapcraftctl compatibility wrapper will be retained to prevent breaking existing builds for core22 and core24, overriding the original removal plan.
qwen3.6-35b-a3b-mtp-q6 — — The snapcraftctl compatibility wrapper removal was abandoned. The maintainer decided to retain the wrapper for core22 and core24 to avoid breaking existing builds, closing the issue without implementation.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/snapcraft#5774 (confidence 95%)

    PR 'Remove all snapcraftctl code and compatibility wrapper for core22' was closed unmerged as the direct implementation attempt for this issue.

  • Superseded By: canonical/snapcraft#5983 (confidence 88%)

    Merged PR (eaadefa01) achieves the core26-only removal: snapcraftctl errors in core26 override scripts while core22/core24 keep the wrapper.

Related issues

Issue Project State Summary Similarity
#5774 Remove all snapcraftctl code and compatibility wrapper for core22 snapcraft closed PR to strip snapcraftctl code for core22 was closed unmerged: maintainers (mr-cal) said removal can't happen for core22/core24 as it would break existing builds, so the wrapper was kept. Later #5983 (eaadefa01) errors on snapcraftctl only in core26.
91%
#3751 craftctl: add snapcraftctl compatibility wrapper snapcraft merged Merged #3751 added a snapcraftctl compatibility wrapper delegating to craftctl, prompted core22 users to migrate, and restored execution of existing spread tests.
76%
#6450 fix(test): error for core22 snaps snapcraft closed PR #6450 proposed an early core22 error for snapcraft test, but was closed unmerged with review pending; #5479 remains open.
73%
#6336 Snapcraft 9: snapcraftctl errors in core22 snaps snapcraft closed Fixed a validator bug preventing core22/core24 snaps without a `base` key from using `snapcraftctl`. Merged as #6499, resolving #6336.
72%
#5983 feat!: error on snapcraftctl snapcraft merged Merged #5983 as eaadefa01: snapcraftctl now errors in core26+ override scripts, and related references were renamed to craftctl.
71%