snapcraft try not available for core22-based snap
Metadata
Current evaluation
Core22 support for snapcraft try was merged in canonical/snapcraft#3981 (commit 2691262b8) and released on the edge channel.
Resolution: closed resolved
Reason: Maintainer @~tigarmo confirmed the core22 support fix had been merged and should be available on the latest edge release. The implementation was merged in canonical/snapcraft#3981 at commit 2691262b8.
Evaluated by: mr-cal-bot
No scores available.
Issue body
The `snapcraft try` command is not available when building a core22-based snap
Trying different combination of options falls back to the legacy implementation:
$ snapcraft -v try
2022-06-15 17:17:14.730 Starting Snapcraft 7.0.4
2022-06-15 17:17:14.730 Logging execution to '/home/ack/.cache/snapcraft/log/snapcraft-20220615-171714.729051.log'
Usage: snapcraft [OPTIONS] COMMAND [ARGS]...
Try 'snapcraft -h' for help.
Error: No such option: -v
$ snapcraft try
Support for 'multipass' needs to be set up. Would you like to do it now? [y/N]: ^CAborted!
$ snapcraft --use-lxd try
Cannot pack snap file: Command '['snap', 'pack', '--check-skeleton', 'try']' returned non-zero exit status 1. (error: open try/meta/snap.yaml: no such file or directory)
Full execution log: '/home/ack/.cache/snapcraft/log/snapcraft-20220615-171729.488780.log'
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Core22 support for snapcraft try was merged in canonical/snapcraft#3981 (commit 2691262b8) and released on the edge channel. | |
| stealth/space-bunny-alpha | — | closed resolved | Added `snapcraft try` support for core22-based snaps and released it on the latest edge channel. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR canonical/snapcraft#3981 (commit 2691262b8), adding core22 support for snapcraft try by mounting the primed directory instead of packing a snap. | |
| qwen/qwen3.6-35b-a3b | — | — | The snapcraft try command failure for core22 snaps was closed without resolution. Zero comments and no associated pull requests indicate the report was abandoned or superseded by updated craft tooling. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or comments. The snapcraft try command remains unavailable for core22-based snaps, with attempts failing or falling back to legacy implementations. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or comments. The snapcraft try command failure for core22-based snaps was not addressed, indicating the issue was abandoned. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. The snapcraft try command failed for core22-based snaps due to missing multipass/LXD setup and legacy fallback errors. No fix was implemented. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#3981
(confidence 98%)
Merged commit 2691262b8 added snapcraft try support for core22-based snaps.
-
Related To:
snapcraft (launchpad)#1996508
(confidence 90%)
Follow-up LXD-provider issue was resolved by the same core22 support change.
-
Related To:
snapcraft (launchpad)#1996511
(confidence 90%)
Follow-up Multipass-provider issue was resolved by the same core22 support change.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1996508 snapcraft try with core22 doesn't support lxd | snapcraft (launchpad) | closed | Core22 support for snapcraft try --use-lxd was added by merged PR snapcore/snapcraft#3981 (commit 2691262b8) and released on edge. | |
| #3981 commands, lifecycle: provide snapcraft try for core22 | snapcraft | merged | Merged in snapcore/snapcraft#3981 (commit 2691262b8), adding snapcraft try for core22 by mounting the host prime directory into the build instance and priming without packing. | |
| #5604 `snapcraft try` for `core24` | snapcraft | open | Core24 `snapcraft try` support remains unimplemented; current code explicitly raises FeatureNotImplemented. Maintainers confirmed it is now feasible after Craft Application 5.0 refactoring. | |
| #1947968 snapcraft missing 22.04 branch | snapcraft (launchpad) | closed | Resolved by opening stable/ubuntu-22.04 and releasing snapcraft revisions 7010 (amd64) and 7013 (s390x), restoring the branch required by the 22.04 package. | |
| #6186 `snapcraft try` error is outdated | snapcraft | closed | Fixed by merged PR #6193 (commit bcae1c3ed): snapcraft try now reports the effective project base, with core24 and core26 test coverage. | |
| #1996511 snapcraft try with multipass provider crashes | snapcraft (launchpad) | closed | Snapcraft try with Multipass and core22 was fixed by snapcore/snapcraft#3981 (commit 2691262b8) and shipped in Snapcraft 7.3. | |
| #1986634 "snapcraft extension" does not recognize core22 extensions | snapcraft (launchpad) | closed | Obsolete after commit 3623601d7 removed the deprecated singular snapcraft extension command; core22 lookup was never repaired. | |
| #1984227 Snapcraft 7.1.1 does not build with core22 on riscv64 | snapcraft (launchpad) | closed | Fixed in Snapcraft 7.1.2, which added the missing riscv64 support needed to build core22 snaps. | |
| #1957803 Support Core22 | snapcraft (launchpad) | closed | Core22 support shipped in Snapcraft 7.0 after development on the snapcraft/7.0 branch, with a mid-March 2022 release target. | |
| #4186 snap: migrate to core22 | snapcraft | merged | PR #4186 merged, moving the Snapcraft snap's own build environment to base core22 (8 files, +71/-70), landing as commit 60033305b and closing the core22 migration issue #4166. |