feat: pack components
Metadata
Current evaluation
Merged PR #4506 added component packaging to snap pack, placing auto-named .comp files in the requested output directory and fixing #4467.
Resolution: closed resolved
Reason: PR #4506 was merged after approval and implements CRAFT-2313. It closes #4467 by packaging components alongside the snap in the requested output directory.
Evaluated by: mr-cal-bot
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 `make lint`?
- [x] Have you successfully run `pytest tests/unit`?
-----
Pack components with `snap pack`.
Snaps can have custom filenames using `--output` (i.e. `snapcraft pack --output my-dir/my-snap.snap`)
However, components cannot. Their names are determined by `snap pack`. They will still be placed in the same output directory (`my-dir` in the example above).
Fixes #4467
(CRAFT-2313)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #4506 added component packaging to snap pack, placing auto-named .comp files in the requested output directory and fixing #4467. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #4506 added component packaging via snap pack, auto-naming components in the requested output directory and resolving issue #4467. | |
| qwen/qwen3.6-35b-a3b | — | — | 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Implemented snap pack support for components, automatically naming them and placing them in the specified output directory. Resolves #4467. Unrelated pyright check failure was addressed in a separate PR. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#4467
(confidence 100%)
Component-packaging feature request resolved by PR #4506.
-
Related To:
canonical/snapcraft#4512
(confidence 100%)
Follow-up PR that pinned Pyright to address the unrelated CI failure noted on PR #4506.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4467 Package snap components | snapcraft | closed | Component packaging was implemented in PR #4506, producing .comp files alongside the snap and updating the final output message. | |
| #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). | |
| #55 feat: support 'pack' command | craft-actions | merged | Merged PR #55 as commit abf3fbd, adding version-aware `snapcraft pack` support while retaining legacy `snapcraft` calls for older versions. Fixes #53. |