← Back to issue list

pluginhandler: export SNAPCRAFT_BUILD_BASE to build environment

View original Github issue

Metadata

Project
snapcraft
Number
#3096
Type
pull request
State
closed
Author
cjp256
Labels
Created
Updated
Closed

Current evaluation

Closed. The change refreshes snap_meta before expand_env() to export SNAPCRAFT_BUILD_BASE to the build environment, fixing a population failure and improving package-repositories handling with extensions.

Suggested action:

No scores available.

Issue body

Add refresh to snap_meta before expand_env() - it will fail because build-base has not yet been populated. Future work should consolidate instantiation. Signed-off-by: Chris Patterson <chris.patterson@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed. The change refreshes snap_meta before expand_env() to export SNAPCRAFT_BUILD_BASE to the build environment, fixing a population failure and improving package-repositories handling with extensions.
qwen3.6-35b-a3b-mtp-q6 Merged to export SNAPCRAFT_BUILD_BASE by refreshing snap_meta prior to environment expansion. This prevents build failures and fixes package-repositories handling when configured with extensions.
qwen3.6-35b-a3b-mtp-q6 Merged to export SNAPCRAFT_BUILD_BASE by refreshing snap_meta before environment expansion. This resolves build-base population failures and fixes package-repositories handling when extensions are applied.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3122 pluginhandler: make the build environment available to all steps snapcraft merged Merged. Reviewer feedback refined scoping: build environment is now available across all plugin steps. SNAPCRAFT_STAGE stays global, build-environment stays on the build step. Changes affect 10 files.
73%