← Back to issue list

fix: inject aliased snaps into build environment

View original Github issue

Metadata

Project
craft-application
Number
#467
Type
pull request
State
merged
Author
mr-cal
Labels
Created
Updated
Closed

Current evaluation

Merged fix to inject aliased snaps into the build environment, resolving issue #411. Snaps are now referenced by their alias during setup. A related craft-providers update is noted for handling signed snaps with snap ack.

Suggested action:

No scores available.

Issue body

- [x] Have you followed the guidelines for contributing? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] Have you successfully run `tox`? ----- Inject snaps into the build environment using their aliased name. I tested and confirmed this works with the reproducer in https://github.com/canonical/snapcraft/issues/4683. However, I tested with a locally built snap, so it had no assertions. The secondary failure in craft-providers with [`snap ack`](https://github.com/canonical/snapcraft/issues/4683#issuecomment-2344242230) will probably start occurring when testing with a signed snap from the store. The craft-providers fix is probably changing [this line](https://github.com/canonical/craft-providers/blob/262978901d49e5c16668d8f0bc251b185837cee9/craft_providers/actions/snap_installer.py#L262) to `snap_name.split('_')[0]`. Fixes #411

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged fix to inject aliased snaps into the build environment, resolving issue #411. Snaps are now referenced by their alias during setup. A related craft-providers update is noted for handling signed snaps with snap ack.
qwen3.6-35b-a3b-mtp-q6 Merged. Resolves issue #411 by injecting aliased snaps into the build environment, addressing snapcraft #4683. A craft-providers update is recommended for signed snap compatibility.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1064 fix: skip injecting snaps from host when cross-building craft-application closed Closed after passing CI checks, implementing a fix to skip injecting host snaps during cross-building. Addresses CRAFT-5118.
73%
#2174 build_providers: inject snaps when running from a snap snapcraft merged Merged. Updates build providers to inject snapcraft and its base from the host when running inside the snapcraft snap, ensuring parity with non-snap environments. Approved by reviewer and passed CI checks.
71%
#4683 Cannot use parallel installations of snapcraft if a non-aliased version is not installed snapcraft closed Parallel snapcraft installations failed when injecting non-aliased versions due to malformed assertion headers. The bug was fixed by correcting snap name parsing in craft-providers, with the solution merged via PRs #5085 and #5087.
71%