← Back to issue list

commands, lifecycle: provide snapcraft try for core22

View original Github issue

Metadata

Project
snapcraft
Number
#3981
Type
pull request
State
merged
Author
tigarmo
Labels
—
Created
Updated
Closed

Current evaluation

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.

Resolution: closed resolved

Reason: PR #3981 was approved and merged, implementing core22 try support in commit 2691262b8.

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `make lint`? - [ ] Have you successfully run `pytest tests/unit`? ----- This commit adds support for ``snapcraft try`` for core22 snaps. Just like in the legacy version, this works by creating a ``prime`` directory on the host that is then mounted into the ``/root/prime`` directory inside the instance. The lifecycle then runs normally and the project is primed but not packed. CRAFT-1121

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved 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.
stealth/space-bunny-alpha — closed resolved Merged PR #3981 added snapcraft try support for core22, mounting the host prime directory for lifecycle priming without packing.
qwen/qwen3.6-35b-a3b — — Merged. Adds snapcraft try support for core22 by mounting a host prime directory into the instance for lifecycle priming without packing. Approved by one reviewer, passed CI, and modified 8 files.
qwen3.6-35b-a3b-mtp-q6 — — Merged into main. Adds snapcraft try support for core22 snaps by mounting a host prime directory into the build instance. The lifecycle runs normally, priming the project without packing. Achieved 100% diff coverage.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1978844 snapcraft try not available for core22-based snap snapcraft (launchpad) closed Core22 support for snapcraft try was merged in canonical/snapcraft#3981 (commit 2691262b8) and released on the edge channel.
79%
#1805212 snapcraft try (integrated with build environments) snapcraft (launchpad) closed Merged snapcore/snapcraft#2524 as ec579eaa1, adding snapcraft try to expose the prime directory transparently in build environments.
79%
#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.
77%
#4118 init: use core22 base for `snapcraft init` snapcraft merged Merged PR #4118 (mr-cal, CRAFT-1670): snapcraft init now scaffolds core22 as the default base instead of core20, with the command moved from snapcraft_legacy/ to snapcraft/ and a spread test added. Squash-merged as 4afc9e4c9.
76%
#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.
75%
#5425 `snapcraft pack` should run the lifecycle for core20 in Snapcraft 8 snapcraft closed Fixed core20 snapcraft pack behavior in merged PR #5616 (commit b511004af): bare pack now runs the lifecycle, while snapcraft pack <dir> still invokes snap pack.
75%
#1939713 snapcraft init create base: core18 snap snapcraft (launchpad) closed Snapcraft init was updated to scaffold core20 instead of core18 by merged canonical/snapcraft#3587 (merge commit f91632aab).
72%
#5426 `snapcraft pack` should run the lifecycle for core18|20 in Snapcraft 7 snapcraft closed Closed as won't-fix-for-Snapcraft-7 by maintainer mr-cal: legacy core18|20 `snapcraft pack` now runs the lifecycle via merged PR #5616 (b511004af), shipped in Snapcraft 8.11, tracking #5425.
72%
#3583 build providers: snapcraft's new base is core20 (CRAFT-544) snapcraft merged Merged PR #3583 via 2b2d7dbcf, replacing build providers' injected core18 base with core20 to match Snapcraft's new base.
72%
#4166 Migrate Snapcraft to core22 snapcraft closed Snapcraft's own snap was migrated to base core22 by merged PR #4186 (commit 60033305b, 8 files, +71/-70), closing this tracking issue.
71%