← Back to issue list

`snapcraft pack` should run the lifecycle for core18|20 in Snapcraft 7

View original Github issue

Metadata

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

Current evaluation

Closed as won't-fix-for-Snapcraft-7 by maintainer mr-cal: legacy core18|20 `snapcraft pack` now runs the lifecycle via merged PR #5616 (b511004af), shipped in Snapcraft 8.11, tracking #5425.

Resolution: closed superseded

Reason: Maintainer mr-cal closed the Snapcraft 7 issue on 2025-08-07 stating the change landed in Snapcraft 8.11 via #5425, with no Snapcraft 7 backport planned. The implementing work is merged PR #5616 (commit b511004af, 'feat(snapcraft_legacy): pack command runs the lifecycle').

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done `snapcraft pack` for core18|20 should act like it does for newer bases: * `snapcraft pack`: run the lifecycle * `snapcraft pack <dir>`: run `snap pack` on a directory ### Why it needs to get done The `snacraft pack` command only packs a directory for core18|20 snaps. `snapcraft pack` needs to be consistent across all bases and to align with other *craft apps.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Closed as won't-fix-for-Snapcraft-7 by maintainer mr-cal: legacy core18|20 `snapcraft pack` now runs the lifecycle via merged PR #5616 (b511004af), shipped in Snapcraft 8.11, tracking #5425.
stealth/space-bunny-alpha — closed resolved Implemented for Snapcraft 8.11 in #5425; no Snapcraft 7 fix was planned, so the legacy behavior was closed.
qwen/qwen3.6-35b-a3b — — Closed for Snapcraft 7. Fixed in Snapcraft 8.11 via merged pull request #5425, enabling snapcraft pack to run the lifecycle for core18 and core20 bases.
qwen/qwen3.6-35b-a3b — — The enhancement to run the lifecycle for core18|20 bases in snapcraft pack was closed without backporting. The maintainer confirmed the feature was implemented in Snapcraft 8.11 via PR #5425, but declined to fix it in Snapcraft 7.
qwen3.6-35b-a3b-mtp-q6 — — Closed for Snapcraft 7. The enhancement was implemented in Snapcraft 8.11 via pull request #5425, enabling snapcraft pack to run the lifecycle for core18 and core20 bases.

Update history

No update history recorded yet.

Related work

  • Superseded By: canonical/snapcraft#5425 (confidence 95%)

    Snapcraft 8 counterpart issue; maintainer cited it as the place the fix was made in 8.11.

  • Likely Fixed By: canonical/snapcraft#5616 (confidence 92%)

    Merged PR (commit b511004af) making legacy core20 `snapcraft pack` run the lifecycle, matching #5425.

Related issues

Issue Project State Summary Similarity
#5425 `snapcraft pack` should run the lifecycle for core20 in Snapcraft 8 snapcraft closed Fixed core20 snapcraft pack behavior in merged PR #5616 (commit b511004af): bare pack now runs the lifecycle, while snapcraft pack <dir> still invokes snap pack.
89%
#5616 feat(snapcraft_legacy): pack command runs the lifecycle snapcraft merged Merged PR #5616 (commit b511004af) made legacy core20 `snapcraft pack` run the lifecycle like newer bases, fixing issue #5425.
85%
#3981 commands, lifecycle: provide snapcraft try for core22 snapcraft merged Merged in snapcore/snapcraft#3981 (commit 2691262b8), adding snapcraft try for core22 by mounting the host prime directory into the build instance and priming without packing.
72%
#5003 Building snap with `core20` failed with non-informative error message snapcraft open The misleading core20 snapcraft-pack error was fixed by merged PR #5616 (commit b511004af), which ran the lifecycle for legacy core20 snaps.
72%
#2444 snap: move to core18 snapcraft closed Superseded by merged PR #2712, which moved Snapcraft's snap from core to core18 in commit bd5be51a3.
71%
#2712 snap: migrate to core18 snapcraft merged Merged PR #2712 by maintainer sergiusens moved Snapcraft's own snap from base core to core18, landing as commit bd5be51a3 (8 files, +95/-42); it superseded the earlier closed attempt PR #2444.
70%
#4912 Module error for snapcraft raised in override-build snapcraft closed The snapcraft_legacy import failure was resolved in Snapcraft 8.3.2; maintainers could no longer reproduce it with lifecycle commands in core22 override scripts.
70%