commands: add snap command
Metadata
Current evaluation
Merged into snapcraft/7.0. Implements legacy snap command support for package creation and fixes output parameter passing to managed instances. Approved by reviewer with passing CI checks.
Suggested action: —
No scores available.
Issue body
Allow usage of the legacy command `snap` to create a snap package, and
fix passing the output parameter to the managed instance.
- [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`?
-----
CRAFT-984
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged into snapcraft/7.0. Implements legacy snap command support for package creation and fixes output parameter passing to managed instances. Approved by reviewer with passing CI checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into snapcraft/7.0, adding legacy snap command support for package creation and fixing output parameter passing to managed instances. PR #3683. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into snapcraft/7.0, enabling the legacy snap command for package creation and correcting output parameter passing to the managed instance. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #49 packages: add snap package support | craft-parts | merged | Merged after implementing snap download and installation for stage and build snaps. Approved by two reviewers, passed CI, and added 1,072 lines across five files. Follows snapcraft conventions with future refactoring planned. | |
| #3637 meta: generate basic snap.yaml (CRAFT-801) | snapcraft | merged | Merged into snapcraft/7.0, adding automatic generation of a basic snap.yaml to enable snap packing. Approved by a reviewer, passed CI, and increased test coverage by 1.16%. | |
| #3721 meta: fix snap yaml generation to match legacy | snapcraft | merged | Merged into snapcraft/7.0. Fixed snap YAML generation to match legacy behavior by properly declaring snap type and handling empty app lists. Approved by maintainer, passed CI, and maintained full test coverage. | |
| #2002 many: add snapcraftctl command for scriptlets | snapcraft | merged | Merged. Adds snapcraftctl CLI for scriptlet-to-Snapcraft communication. Introduces snapcraftctl build for override-build, resolving #1675 and LP: #1751749. Approved with passing CI across 28 files. | |
| #1746 cli: add version command | snapcraft | merged | Merged after reviewer approval and passing CI. Adds a CLI version command to snapcraft, resolving feedback on click message parameters, type checking, and whitespace before final merge. | |
| #3630 cli: add lifecycle command stubs (CRAFT-764) | snapcraft | merged | Merged into snapcraft/7.0. Added CLI stubs for pull, build, stage, and prime phases, falling back to legacy. Reorganized CLI tests and fixed version command tests. Approved and passed CI. | |
| #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. | |
| #3680 commands, parts: add clean command | snapcraft | merged | Added a clean command to remove parts and their build instances when no parts are specified, excluding destructive or managed modes. Merged after approval, passing CI, and rebasing onto snapcraft/7.0. | |
| #3639 commands: add pack command and set it as default (CRAFT-762) | snapcraft | merged | 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. | |
| #2063 many: add snapcraftctl set-version | snapcraft | merged | Merged. Adds snapcraftctl set-version to configure snap versions from scriptlets, resolving issue 1676. Provides reusable infrastructure for future setter commands. Approved by reviewer and passed CI checks. |