← Back to issue list

SNAPCRAFT_PART_INSTALL doesn't expand in build-environment assignments

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1822375
Type
issue
State
open
Author
~brlin
Labels
Created
Updated
Closed

Current evaluation

SNAPCRAFT_PART_INSTALL not expanded in build-environment assignments, resolving to /lib/python3.6. Open since 2018 with zero comments and no labels; no evidence the behavior changed in current craft-parts, which still emits user build-environment values verbatim.

Suggested action: needs triage

Reason: No maintainer has ever acknowledged, labelled, or responded to this issue (0 comments, no labels, 2712 days old), so it has not been triaged. The current craft-parts code (craft_parts/executor/environment.py) still writes user build-environment values verbatim into the step environment script, so the reported behavior likely persists, but I could not verify a live reproduction, so a human should confirm before closing or fixing.

Impact: 30 Quick Win: 18.0 Staleness: 95 Complexity: 40 Confidence: 55 Support Request: 10

Issue body

The following assignment doesn't work: ```yaml parts: _part_name_: build-environment: - PYTHONPATH: $SNAPCRAFT_PART_INSTALL/lib/python3.6 ``` It'll expand to `/lib/python3.6` in the `override-build` scriptlet. Refer https://forum.snapcraft.io/t/problems-with-the-parts-part-name-build-environment-property/10642 for discussion.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 18.0
Staleness: 95
Complexity: 40
Confidence: 55
Support Request: 10
needs triage SNAPCRAFT_PART_INSTALL not expanded in build-environment assignments, resolving to /lib/python3.6. Open since 2018 with zero comments and no labels; no evidence the behavior changed in current craft-parts, which still emits user build-environment values verbatim.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 40
Confidence: 85
Support Request: 10
close stale Bug report stating SNAPCRAFT_PART_INSTALL fails to expand correctly in build-environment YAML assignments, resolving to an incorrect path. Issue has seen no maintainer interaction or updates in over seven years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 45
Confidence: 90
Support Request: 10
close stale Bug report stating $SNAPCRAFT_PART_INSTALL fails to expand in build-environment assignments, expanding to an empty path instead. Issue has been inactive for over 7 years with no maintainer response or labels.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 40
Confidence: 75
Support Request: 10
close stale $SNAPCRAFT_PART_INSTALL variable expansion fails in build-environment YAML assignments, producing incorrect paths. The report has been open for over seven years with zero maintainer interaction or updates.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 45
Confidence: 85
Support Request: 10
close stale Bug report stating SNAPCRAFT_PART_INSTALL fails to expand correctly in build-environment assignments. Open for ~7 years with zero maintainer interaction or comments.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft (launchpad)#1628915 (confidence 60%)

    Earlier report of SNAPCRAFT_PART_INSTALL not being replaced when called by build tools; same variable-substitution theme, closed without resolution.

Related issues

Issue Project State Summary Similarity
#1628915 SNAPCRAFT_PART_INSTALL is not being replaced when called by the build tools snapcraft (launchpad) closed 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.
85%
#1719951 SNAPCRAFT_PARTS_URI doesn't work with cleanbuild snapcraft (launchpad) closed 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.
72%