← Back to issue list

lxd: pass SNAPCRAFT_PARTS_URI through into container

View original Github issue

Metadata

Project
snapcraft
Number
#1585
Type
pull request
State
merged
Author
kalikiana
Labels
—
Created
Updated
Closed

Current evaluation

Merged in canonical/snapcraft#1585 (13ea598d5), forwarding SNAPCRAFT_PARTS_URI into LXD containers so cleanbuild can resolve remote parts; fixes Launchpad #1719951.

Resolution: closed resolved

Reason: The approved PR was merged as commit 13ea598d5, propagating SNAPCRAFT_PARTS_URI into LXD containers to resolve the cleanbuild remote-parts failure tracked by Launchpad bug 1719951.

Evaluated by: mr-cal-bot

No scores available.

Issue body

- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)? - [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh unit`? ----- Fixes: [bug 1719951](https://bugs.launchpad.net/snapcraft/+bug/1719951)

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged in canonical/snapcraft#1585 (13ea598d5), forwarding SNAPCRAFT_PARTS_URI into LXD containers so cleanbuild can resolve remote parts; fixes Launchpad #1719951.
stealth/space-bunny-alpha — closed resolved Merged PR #1585 (commit 13ea598d5) propagates SNAPCRAFT_PARTS_URI into LXD containers, fixing cleanbuild remote-part resolution for Launchpad bug #1719951.
stealth/space-bunny-alpha — closed resolved Merged in canonical/snapcraft#1585 (commit 13ea598d5), passing SNAPCRAFT_PARTS_URI into LXD containers to fix Launchpad bug 1719951.
qwen/qwen3.6-35b-a3b — — Merged to resolve bug 1719951. The change passes the SNAPCRAFT_PARTS_URI environment variable into LXD containers. Approved by one reviewer, passed CI checks, and added 19 lines across two files.
qwen3.6-35b-a3b-mtp-q6 — — Merged changes passing SNAPCRAFT_PARTS_URI into LXD containers, resolving bug 1719951.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft (launchpad)#1719951 (confidence 100%)

    Launchpad bug 1719951 reported that cleanbuild did not propagate SNAPCRAFT_PARTS_URI; PR #1585 fixes it.

Related issues

Issue Project State Summary Similarity
#1719951 SNAPCRAFT_PARTS_URI doesn't work with cleanbuild snapcraft (launchpad) closed Fixed cleanbuild remote-part resolution by forwarding SNAPCRAFT_PARTS_URI into LXD; merged in snapcore/snapcraft#1585 (13ea598d5).
85%
#1739 lxd: refresh remote container snapcraft merged Merged #1739 as 2f9265f23, fixing snapcraft refresh to honor the LXD remote named by SNAPCRAFT_CONTAINER_BUILDS instead of using a local container.
77%
#1483 lxd: path cannot have extra forward slashes snapcraft merged Merged in canonical/snapcraft#1483 (commit 1a3c02b43), removing extra leading slashes from LXD mount paths so containers could find snap/snapcraft.yaml.
76%
#1364 lxd: Inject snapcraft and core snaps into the container snapcraft merged Merged PR #1364 as 99f5598ac, injecting the host's Snapcraft and core snaps into LXD containers so builds no longer use a mismatched Xenial archive version.
76%
#1263 lxd: pass through commands into the container snapcraft merged Merged #1263 as commit e0f28bd5c, routing snap-building and parts commands through LXD containers so remote/cleanbuild commands run inside the container environment.
75%
#1546 cli: update parts cache in the container snapcraft merged Merged as 0dde02398: snapcraft update now refreshes the parts cache in the LXD container as well as the host. Complementary container refresh work landed in #1412.
75%
#1412 lxd: snapcraft refresh in containers snapcraft merged Merged PR #1412 as 3d511c5eb, making LXD container refresh install Snapcraft once while allowing packages and snaps to be updated in reusable containers.
73%
#1734145 snapcraft clean <part-name> destroys everything when using containers snapcraft (launchpad) closed Fixed targeted container cleanup: `snapcraft clean <part>` no longer deletes the LXD container while other parts remain; merged in #1762 (dbce9a058).
72%
#1666735 snapcraft cleanbuild does not work with lxd installed via snap snapcraft (launchpad) closed Fixed by merged canonical/snapcraft#1199 (commit 417989880), making cleanbuild LXD detection packaging-independent instead of relying on apt package metadata.
71%
#1816 snapcraft update won't fetch from `SNAPCRAFT_PARTS_URI` snapcraft closed Superseded by Launchpad #1719928 and fixed by merged PR #1856 (commit 5a0a8c075), adding URI-specific remote-parts cache folders to prevent stale metadata collisions.
71%