← Back to issue list

SNAPCRAFT_PART_INSTALL is not being replaced when called by the build tools

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1628915
Type
issue
State
closed
Author
~popey
Labels
eco-team
Created
Updated
Closed

Current evaluation

SNAPCRAFT_PART_INSTALL expansion in part attributes was fixed by merged canonical/snapcraft PR #841 in commit 6cef6c0f9, resolving the malformed nested install paths.

Resolution: closed resolved

Reason: PR #841 was merged as commit 6cef6c0f9, replacing SNAPCRAFT_PART_INSTALL in part attributes with the part-specific install path.

Evaluated by: mr-cal-bot

No scores available.

Issue body

As discussed with sergiusens on irc. I'm using SNAPCRAFT_PART_INSTALL to specify where a part is installed, but it's getting ignored, leading to very odd install paths like:- /home/alan/Dev/appname/parts/partname/ appearing nested inside of /home/alan/Dev/appname/parts/partname/ along with $SNAPCRAFT_PART_INSTALL for good measure :) http://paste.ubuntu.com/23250887/ See line 12967 onwards.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved SNAPCRAFT_PART_INSTALL expansion in part attributes was fixed by merged canonical/snapcraft PR #841 in commit 6cef6c0f9, resolving the malformed nested install paths.
stealth/space-bunny-alpha — closed resolved Reported that SNAPCRAFT_PART_INSTALL was left unexpanded in part attributes, causing odd nested install paths. Fixed by merged PR #841 (commit 6cef6c0f9); LP bug #1628915 closed.
stealth/space-bunny-alpha — closed resolved Fixed by merged canonical/snapcraft#841 (commit 6cef6c0f9), which expanded SNAPCRAFT_PART_INSTALL in part attributes so build tools no longer received the literal variable.
qwen/qwen3.6-35b-a3b — — Closed without a documented fix. The report detailed SNAPCRAFT_PART_INSTALL expansion failing in build tools, causing nested install paths. With zero comments and no follow-up, the issue was likely abandoned or superseded by subsequent project changes.
qwen/qwen3.6-35b-a3b — — Build tools failing to substitute SNAPCRAFT_PART_INSTALL, causing incorrect nested install paths, was closed without resolution. Zero comments indicate the report was abandoned or marked stale.
qwen/qwen3.6-35b-a3b — — SNAPCRAFT_PART_INSTALL failed to expand during builds, causing nested install paths. The issue was closed without comments or a fix, indicating it was abandoned due to inactivity.
qwen3.6-35b-a3b-mtp-q6 — — SNAPCRAFT_PART_INSTALL environment variable replacement failures causing nested install paths were reported but the item was closed without resolution. Zero comments and prolonged inactivity indicate the report was abandoned or auto-closed.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#841 (confidence 100%)

    Merged fix for SNAPCRAFT_PART_INSTALL expansion in part attributes.

Related issues

Issue Project State Summary Similarity
#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.
93%
#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.
86%
#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).
73%
#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.
71%