← Back to issue list

feat: allow applications to set build environment

View original Github issue

Metadata

Project
craft-parts
Number
#1608
Type
pull request
State
merged
Author
cmatsuoka
Labels
Created
Updated
Closed

Current evaluation

Merged implementation adding a build_environment parameter to the lifecycle manager, enabling applications to pass default build variables overridable per part. Includes integration tests and received approval from two reviewers.

Suggested action:

No scores available.

Issue body

Add a `build_environment` parameter to the lifecycle manager allowing applications to pass default variables to be added to the build step environment. The variables can be overriden by the user in each part. - [ ] Have you followed the guidelines for contributing? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `make lint && make test`? - [ ] Have you added an entry to the changelog (`docs/reference/changelog.rst`)? --- CRAFT-5181 Note to reviewers: the entire environment building system is somewhat messy and should be refactored, but in a different PR. Then we can feed the application-defined environment variables into the refactored environment builder in an uniform way instead of just prepending to the rendered string.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged implementation adding a build_environment parameter to the lifecycle manager, enabling applications to pass default build variables overridable per part. Includes integration tests and received approval from two reviewers.
qwen3.6-35b-a3b-mtp-q6 Merged a feature adding a build_environment parameter to the lifecycle manager, enabling applications to pass default build variables overridable per part. Includes an integration test for custom overrides. Author notes future refactoring.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#170 feat: pass build environment to the parts lifecycle debcraft merged Merged a feature passing dpkg-buildflags to the parts lifecycle build environment. Approved by two reviewers with all CI checks passing. The maintainer updated four files to propagate these environment variables during the build process.
72%