← Back to issue list

SNAPCRAFT_PARTS_URI doesn't work with cleanbuild

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1719951
Type
issue
State
closed
Author
~aleixpol-kde
Labels
—
Created
Updated
Closed

Current evaluation

Fixed cleanbuild remote-part resolution by forwarding SNAPCRAFT_PARTS_URI into LXD; merged in snapcore/snapcraft#1585 (13ea598d5).

Resolution: closed resolved

Reason: PR snapcore/snapcraft#1585 was merged as commit 13ea598d5, passing SNAPCRAFT_PARTS_URI into the LXD container so cleanbuild could resolve remote parts.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Was following the instructions here: https://community.kde.org/Neon/Snap#Building Here's the output I get: Setting up xdelta3 (3.0.8-dfsg-1ubuntu2) ... Setting up python3-libarchive-c (2.1-3) ... Setting up python3-magic (1:5.25-2ubuntu1) ... Setting up snapcraft (2.34) ... Processing triggers for libc-bin (2.23-0ubuntu9) ... Downloading parts list| Cannot find the definition for part 'kde-frameworks-5-dev'. It may be a remote part, run `snapcraft update` to refresh the remote parts cache. Stopping local:snapcraft-gladly-cuddly-loon Traceback (most recent call last): File "/home/apol/devel/playground/snapcraft/bin/snapcraft", line 36, in <module> obj=dict(project=snapcraft.ProjectOptions())) File "/usr/lib/python3.6/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3.6/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/lib/python3.6/site-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3.6/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3.6/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/home/apol/devel/playground/snapcraft/snapcraft/cli/lifecycle.py", line 193, in cleanbuild lifecycle.cleanbuild(project_options, remote) File "/home/apol/devel/playground/snapcraft/snapcraft/internal/lifecycle.py", line 338, in cleanbuild metadata=config.get_metadata(), remote=remote).execute() File "/home/apol/devel/playground/snapcraft/snapcraft/internal/lxd.py", line 167, in execute raise e File "/home/apol/devel/playground/snapcraft/snapcraft/internal/lxd.py", line 161, in execute self._container_run(command, cwd=self._project_folder) File "/home/apol/devel/playground/snapcraft/snapcraft/internal/lxd.py", line 114, in _container_run **kwargs) File "/usr/lib/python3.6/subprocess.py", line 291, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['lxc', 'exec', 'local:snapcraft-gladly-cuddly-loon', '--', 'sh', '-c', 'cd /root/build_kdevelop; snapcraft snap --output kdevelop_5.2_amd64.snap']' returned non-zero exit status 2.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed cleanbuild remote-part resolution by forwarding SNAPCRAFT_PARTS_URI into LXD; merged in snapcore/snapcraft#1585 (13ea598d5).
stealth/space-bunny-alpha — closed resolved Bug confirmed by maintainer: SNAPCRAFT_PARTS_URI was not propagated into the LXD container. Fixed by merged PR snapcore/snapcraft#1585 (commit 13ea598d5); issue closed.
stealth/space-bunny-alpha — closed resolved Bug (Launchpad #1719951): SNAPCRAFT_PARTS_URI wasn't propagated into the LXD container, so cleanbuild couldn't resolve remote parts. Fixed by merged PR canonical/snapcraft#1585 (commit 13ea598d5).
stealth/space-bunny-alpha — closed stale Closed as stale without a recorded issue-specific resolution; canonical/snapcraft#1585 had addressed parts-URI propagation into cleanbuild containers.
qwen/qwen3.6-35b-a3b — — Abandoned and closed without resolution due to inactivity. The report details a snapcraft cleanbuild failure where SNAPCRAFT_PARTS_URI fails to resolve remote parts, triggering a subprocess error. No fix was implemented.
qwen/qwen3.6-35b-a3b — — Closed without comments or resolution. The cleanbuild failure with SNAPCRAFT_PARTS_URI was abandoned or superseded by newer Snapcraft versions that updated remote part handling.
qwen/qwen3.6-35b-a3b — — Closed without resolution or comments. SNAPCRAFT_PARTS_URI failed during cleanbuild, causing a missing part definition error. The report appears abandoned or superseded by newer snapcraft versions.
qwen3.6-35b-a3b-mtp-q6 — — Closed without comments or resolution. The cleanbuild failure from missing remote part definitions was likely abandoned or superseded by updated snapcraft versions that fixed remote parts cache handling.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#1585 (confidence 100%)

    Merged fix forwarding SNAPCRAFT_PARTS_URI into LXD containers.

Related issues

Issue Project State Summary Similarity
#1585 lxd: pass SNAPCRAFT_PARTS_URI through into container snapcraft merged Merged in canonical/snapcraft#1585 (13ea598d5), forwarding SNAPCRAFT_PARTS_URI into LXD containers so cleanbuild can resolve remote parts; fixes Launchpad #1719951.
85%
#1719928 snapcraft update won't fetch from SNAPCRAFT_PARTS_URI snapcraft (launchpad) closed Fixed by snapcore/snapcraft PR #1856, which keyed cached parts data by SNAPCRAFT_PARTS_URI so alternate part sources were no longer treated as already current.
78%
#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.
74%
#1822375 SNAPCRAFT_PART_INSTALL doesn't expand in build-environment assignments snapcraft (launchpad) closed Fixed in PR #841 (commit 6cef6c0f9) by replacing SNAPCRAFT_PART_INSTALL in part attributes with the part-specific install path.
73%
#1628915 SNAPCRAFT_PART_INSTALL is not being replaced when called by the build tools snapcraft (launchpad) closed SNAPCRAFT_PART_INSTALL expansion in part attributes was fixed by merged canonical/snapcraft PR #841 in commit 6cef6c0f9, resolving the malformed nested install paths.
73%
#841 Replace SNAPCRAFT_PART_INSTALL in the part attributes. snapcraft merged Merged as 6cef6c0f9 via canonical/snapcraft#841, replacing SNAPCRAFT_PART_INSTALL in part attributes with the part-specific install path.
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%