Improve installation/injection logic for snapcraft (and core)
Metadata
Current evaluation
Installation and host-injection logic was resolved in canonical/craft-providers PR #45, merged as commit 3573b67 under CRAFT-253.
Resolution: closed resolved
Reason: The Launchpad closure record links the completed installation and host-injection helpers to canonical/craft-providers PR #45, merged as commit 3573b67 under CRAFT-253.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Create a registry of installations to quickly determine if a new injection is required.
Operationalize each action required for every snap.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Installation and host-injection logic was resolved in canonical/craft-providers PR #45, merged as commit 3573b67 under CRAFT-253. | |
| stealth/space-bunny-alpha | — | closed resolved | Installation and host-injection helpers were merged in craft-providers PR #45 (commit 3573b67) under CRAFT-253. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The proposal to create an installation registry and operationalize snap injection actions was abandoned or superseded by later snapcraft improvements. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution or discussion. The proposal to implement an installation registry and operationalize snap injection logic was abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation or discussion. Likely abandoned or superseded by subsequent build-vm updates. No resolution details provided. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without discussion or comments. Likely abandoned or superseded by updated build infrastructure. No implementation or resolution details provided. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/craft-providers#45
(confidence 99%)
Merged the snap installation and injection helpers associated with CRAFT-253.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1782777 Improve installation/injection logic for snapcraft (and core) | snapcraft (launchpad) | closed | Fixed by merged snapcore/snapcraft PR #2196 in commit d9a477ea5, improving build-provider installation and snap injection logic. | |
| #45 actions: introduce helpers to install & inject snaps (CRAFT-253) | craft-providers | merged | PR #45 (commit 5e8109c, merged via 3573b67) added snap_installer.install_from_store() and inject_from_host() helpers plus installed_snap/core20_lxd_instance test fixtures, with unit and integration tests. | |
| #891 (internal) Install snap via craft-providers API (CRAFT-1277) | charmcraft | merged | Merged PR #891 as commit 456601ff, switching Charmcraft snap installation to the craft-providers API and completing CRAFT-1277. | |
| #1064 fix: skip injecting snaps from host when cross-building | craft-application | closed | Closed as redundant after the same cross-build snap-injection fix merged in canonical/craft-application#1037 via commit 16bd7ac3. | |
| #2174 build_providers: inject snaps when running from a snap | snapcraft | merged | Merged PR #2174 (commit 283ab0bb8) to inject host Snapcraft and base snaps when running from the snapcraft snap, while non-snap runs install them from the store. | |
| #4084 providers: inject current snapcraft snap into instances | snapcraft | merged | Merged PR #4084 as commit b852f9ac8, injecting the current Snapcraft snap into provider instances so parallel-installed instances can build core22 snaps. | |
| #1998100 Randomly I get "failed to inject host's snap 'snapcraft' into target environment." errors | snapcraft (launchpad) | closed | Random host-snap injection failures were fixed by canonical/craft-providers PR #182 and released in Snapcraft 7.3. | |
| #1779137 build provider support to inject snaps on the host | snapcraft (launchpad) | closed | Build providers gained host-snap injection when Snapcraft runs from a snap; fixed by merged snapcore/snapcraft#2174 (commit 283ab0bb8). |