feat: support 'pack' command
Metadata
Current evaluation
Merged PR #55 as commit abf3fbd, adding version-aware `snapcraft pack` support while retaining legacy `snapcraft` calls for older versions. Fixes #53.
Resolution: closed resolved
Reason: PR #55 was approved and merged as commit abf3fbd. It fixes #53 by invoking `snapcraft pack` for Snapcraft 8+ and legacy `snapcraft` for older releases.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Snapcraft 8 deprecated calling `snapcraft` in favor of `snapcraft pack`. Snapcraft 9 will raise an error when calling just `snapcraft`.
Older versions of snapcraft don't fully support `snapcraft pack`, so this PR calls `snapcraft` for older snapcraft versions and `snapcraft pack` for everything else.
Similar to https://github.com/canonical/action-build/pull/91
Fixes #53
(SNAPCRAFT-5028)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #55 as commit abf3fbd, adding version-aware `snapcraft pack` support while retaining legacy `snapcraft` calls for older versions. Fixes #53. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in craft-actions#55 to add version-aware `snapcraft pack` support, retaining legacy `snapcraft` calls for older releases. Fixes #53 (SNAPCRAFT-5028). | |
| qwen/qwen3.6-35b-a3b | — | — | Merged to add version-aware support for the snapcraft pack command, addressing Snapcraft 8 deprecation and Snapcraft 9 breaking changes. Maintainer merged despite unrelated CI infrastructure failures on ppc64el and s390x. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
craft-actions#53
(confidence 100%)
PR #55 explicitly states that it fixes the Snapcraft pack compatibility issue in #53.
-
Related To:
action-build#91
(confidence 95%)
PR #55 identifies this pull request as a similar implementation.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4794 feat: allow packing a directory | snapcraft | merged | Merged PR #4794 (commit 48483c4e3) restores `snapcraft pack <directory>`, fixing the 8.2 regression where the directory argument was ignored when locating snapcraft.yaml; closes issue #4769 (CRAFT-2861). | |
| #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. | |
| #45 feat: create new snapcraft-pack action | craft-actions | merged | Merged as commit 8756708, adding a snapcraft/pack action modeled on charmcraft/pack, with shared common/ workflows, working `path` input, and snap/ dir added to the cache key. All CI checks passed; docs followed in #46. | |
| #6285 feat: enable pro support | snapcraft | merged | Merged PR #6285 in commit 704979f5e, enabling Pro support and adding a spread test for packing a Pro snap. | |
| #4506 feat: pack components | snapcraft | merged | Merged PR #4506 added component packaging to snap pack, placing auto-named .comp files in the requested output directory and fixing #4467. |