fix: skip injecting snaps from host when cross-building
Metadata
Current evaluation
Closed after passing CI checks, implementing a fix to skip injecting host snaps during cross-building. Addresses CRAFT-5118.
Suggested action: —
No scores available.
Issue body
- [ ] Have you followed the guidelines for contributing?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `make lint && make test`?
- [ ] Have you added an entry to the changelog (`docs/reference/changelog.rst`)?
---
CRAFT-5118
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed after passing CI checks, implementing a fix to skip injecting host snaps during cross-building. Addresses CRAFT-5118. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without merge. The proposed fix to skip injecting host snaps during cross-building was rejected. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to fix cross-building snap injection by skipping host snaps, resolving CRAFT-5118. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #467 fix: inject aliased snaps into build environment | craft-application | merged | 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. | |
| #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. | |
| #5265 fix(remotebuild): don't fail when cross-compiling | snapcraft | merged | Merged fix resolving remote build cross-compilation failures. Snapcraft now passes build-on architectures to Launchpad instead of build-for, enabling correct cross-compilation and addressing issue #4996. Approved by reviewers and passed CI. |