← Back to issue list

missing SNAPCRAFT_PART_* variables in override-prime

View original Launchpad issue

Metadata

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

Current evaluation

Missing SNAPCRAFT_PART_* env vars in override-prime fixed by merged PR snapcore/snapcraft#3122 (commit f1f127136), exposing plugin build env to all lifecycle steps while keeping build-environment scoped to build.

Resolution: closed resolved

Reason: Reported against snapcraft 4.0 (rev 4657), where override-prime only exposed SNAPCRAFT_INTERPRETER. Maintainer linked PR snapcore/snapcraft#3122, merged as commit f1f127136, refactoring pluginhandler so the plugin build environment is available to all steps, with build-environment entries remaining build-only; this closed LP: #1876260.

Evaluated by: mr-cal-bot

No scores available.

Issue body

With snapcraft 4.0 (4657), in a python part for a core20-based snap, SNAPCRAFT_PART_* variables are not exported to the env running the `override-prime` part. They are present in `override-build`.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Missing SNAPCRAFT_PART_* env vars in override-prime fixed by merged PR snapcore/snapcraft#3122 (commit f1f127136), exposing plugin build env to all lifecycle steps while keeping build-environment scoped to build.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR snapcore/snapcraft#3122 (commit f1f127136), making plugin build-environment variables available to all lifecycle steps while keeping build-environment entries scoped to build.
stealth/space-bunny-alpha — closed stale SNAPCRAFT_PART_* variables were reportedly missing from override-prime but present in override-build on Snapcraft 4.0; closed without a recorded fix or explanation after prolonged inactivity.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The missing SNAPCRAFT_PART_* variables in override-prime remain unaddressed, likely abandoned due to inactivity.
qwen/qwen3.6-35b-a3b — — Closed without resolution. SNAPCRAFT_PART_* variables were reported missing in the override-prime environment for snapcraft 4.0 core20 snaps, though present in override-build. No fix or follow-up was provided.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#3122 (confidence 96%)

    Merged PR 'pluginhandler: make the build environment available to all steps' (commit f1f127136), cited by the maintainer in the final comment; explicitly references LP: #1876260.

Related issues

Issue Project State Summary Similarity
#1815658 snapcraft leaks build-environment across parts snapcraft (launchpad) closed Fixed by snapcore/snapcraft PR #2472 (commit 8ca7dd7f2), preventing a part's build-environment from leaking into subsequently processed parts.
72%
#4307 SNAPCRAFT_BUILD_ENVIRONMENT apparently takes precedence over "--use-lxd" snapcraft closed Fixed by merged PR #4329 (commit 7f8d4cff9): --use-lxd now overrides SNAPCRAFT_BUILD_ENVIRONMENT, matching documented precedence.
70%