commands: add pack command and set it as default (CRAFT-762)
Metadata
Current evaluation
Merged PR #3639 added the pack command and made it the default for creating a snap package. Landed via merge commit 2cdb81ed4.
Resolution: closed resolved
Reason: PR #3639 was merged with implementation commit 956867723 and merge commit 2cdb81ed4, adding pack and making it the default command when none is specified.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Add the `pack` command to create a snap package from the current
project. When snapcraft is invoked without an explicit command,
`pack` will be executed.
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [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/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #3639 added the pack command and made it the default for creating a snap package. Landed via merge commit 2cdb81ed4. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #3639 adds the pack command and makes it the default when Snapcraft runs without an explicit command (commit 2cdb81ed4). | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in snapcraft#3639 via commit 2cdb81ed4, adding the pack command and making it the default when no command is specified. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in snapcraft#3639 as commit 2cdb81ed4, adding the pack command to build snap packages and making it the default command. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged after approval and CI checks. Adds the pack command to build snap packages and sets it as the default when snapcraft runs without arguments. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Adds the pack command to build snap packages and sets it as the default action when snapcraft runs without arguments. Resolves CRAFT-762. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1565 cli: add the pack command | snapcraft | merged | Merged PR #1565 added the pack CLI command, renamed from assemble, and landed in commit 87ad820b5. | |
| #6367 docs: add a "pack a Pro snap" how-to | snapcraft | merged | Merged #6367 (CRAFT-5236), adding the “Pack a Pro snap” how-to after its craft-application#1144 documentation dependency landed. | |
| #307 ci: pack snap using craft-actions | imagecraft | merged | Merged in commit 3f26a09 via #307, replacing action-build with canonical/craft-actions' Snapcraft pack action. | |
| #182 Added the pack command, initially to work only with bundles. | charmcraft | merged | PR #182 was merged, adding the initial pack command with bundle-only support (merge commit 8e95f0ea). | |
| #4797 refactor: change PackCommand parent | snapcraft | merged | PR #4797 merged as commit b6f464c78, reparenting snapcraft's PackCommand onto craft-application's PackCommand, deleting ~23 lines of duplicated code enabled by craft-application#340/#341. | |
| #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. |