← Back to issue list

Need variables for src and build dirs

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1763028
Type
issue
State
closed
Author
~popey
Labels
—
Created
Updated
Closed

Current evaluation

Added SNAPCRAFT_PART_SRC, SRC_WORK, BUILD and BUILD_WORK variables via snapcore/snapcraft#2122, commit 31307b5de.

Resolution: closed resolved

Reason: The request was implemented by the changes recorded in snapcore/snapcraft#2122 and commit 31307b5de, which introduced stable environment variables for part source and build directories.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Had a conversation with Sergio on slack about the fact that in many snaps I'm doing all kinds of git describe operation on parts/<partname>/src which isn't a stable interface to those directories. He suggested I file a bug requesting SNAPCRAFT_PART_SOURCE(DIR) and BUILD to make it easier to programmatically interrogate those directories.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Added SNAPCRAFT_PART_SRC, SRC_WORK, BUILD and BUILD_WORK variables via snapcore/snapcraft#2122, commit 31307b5de.
stealth/space-bunny-alpha — closed resolved Resolved by merged PR canonical/snapcraft#2122 (commit 31307b5de), adding SNAPCRAFT_PART_SRC and SNAPCRAFT_PART_BUILD variables for stable access to part directories.
stealth/space-bunny-alpha — closed resolved Merged PR canonical/snapcraft#2122 (31307b5de) added SNAPCRAFT_PART_SRC and SNAPCRAFT_PART_BUILD, providing stable variables for part source and build directories.
qwen/qwen3.6-35b-a3b — — Abandoned. The request for stable SNAPCRAFT_PART_SOURCE and BUILD directory variables was closed without implementation or discussion.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The request to expose SNAPCRAFT_PART_SOURCE and BUILD environment variables for stable source and build directory access was not addressed.
qwen/qwen3.6-35b-a3b — — Feature request for source and build directory environment variables was closed without implementation or discussion, indicating it was abandoned.
qwen3.6-35b-a3b-mtp-q6 — — Closed without action. Requested SNAPCRAFT_PART_SOURCE and BUILD variables to replace unstable part paths. Feature likely implemented in later Snapcraft releases.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#2122 (confidence 99%)

    PR #2122 is titled "many: introduce variables for part src and build" and resolves the issue at commit 31307b5de.

Related issues

Issue Project State Summary Similarity
#2122 many: introduce variables for part src and build snapcraft merged Merged in commit 31307b5de via #2122, adding source/build directory variables and centralizing SNAPCRAFT_* environment handling; resolved LP #1763028.
87%