feat: allow packing a directory
Metadata
Current evaluation
Merged to restore snapcraft pack directory functionality after a snapcraft 8.2 regression. Approved by two reviewers, passed CI, and resolved issue #4769.
Suggested action: —
No scores available.
Issue body
- [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/)?
- [x] Have you successfully run `tox run -m lint`?
- [x] Have you successfully run `tox run -e test-py310`? (supported versions: `py39`, `py310`, `py311`, `py312`)
-----
This fixes a regression in snapcraft 8.2 where `snapcraft pack <directory>` stopped working.
Fixes #4769
(CRAFT-2861)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged to restore snapcraft pack directory functionality after a snapcraft 8.2 regression. Approved by two reviewers, passed CI, and resolved issue #4769. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix for a snapcraft 8.2 regression that broke snapcraft pack directory. The maintainer force-pushed to remove extraneous commits before merging, resolving issue #4769 and CRAFT-2861. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix restoring snapcraft pack directory functionality after a regression in version 8.2. The maintainer force-pushed to remove extraneous commits before merging, resolving issue #4769. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #55 feat: support 'pack' command | craft-actions | merged | 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. | |
| #4506 feat: pack components | snapcraft | merged | Merged feature adding snap pack support for components. Components are auto-named and placed in the target directory, resolving issue 4467. Approved by two reviewers, passed CI, and modified six files with 313 additions. | |
| #5616 feat(snapcraft_legacy): pack command runs the lifecycle | snapcraft | merged | Merged squashed PR that aligns the core20 snapcraft pack command with core22 and core24 by running the lifecycle. Approved by three reviewers with all CI checks passing. Resolves #5425. | |
| #100 feat(snapcraft/pack): node-based rewrite | craft-actions | merged | Merged a node-based rewrite of the snapcraft/pack action. Resolves the Snapcraft 7 default command issue, adds .comp file support, and includes unit tests. Approved by two reviewers with all CI checks passing across multiple platforms. | |
| #45 feat: create new snapcraft-pack action | craft-actions | merged | Merged a new snapcraft-pack GitHub Action for automated Snapcraft setup and packaging. Implements upstreamed workflows, cache key improvements, and path variable fixes. Approved by three reviewers, passed all CI checks. README documentation to follow. |