← Back to issue list

Export important project variables

View original Github issue

Metadata

Project
snapcraft
Number
#757
Type
pull request
State
merged
Author
sergiusens
Labels
Created
Updated
Closed

Current evaluation

Merged. Exports SNAPCRAFT_PROJECT_NAME, VERSION, STAGE, and PART_INSTALL variables. Reviewers approved and noted a planned expand_env refactor. CI retests and coverage fixes were applied before final merge.

Suggested action:

No scores available.

Issue body

This generally exports: - `SNAPCRAFT_PROJECT_NAME` - `SNAPCRAFT_PROJECT_VERSION` - `SNAPCRAFT_PROJECT_STAGE` and for each part: - `SNAPCRAFT_PART_INSTALL` LP: #1588336 Signed-off-by: Sergio Schvezov sergio.schvezov@ubuntu.com

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged. Exports SNAPCRAFT_PROJECT_NAME, VERSION, STAGE, and PART_INSTALL variables. Reviewers approved and noted a planned expand_env refactor. CI retests and coverage fixes were applied before final merge.
qwen3.6-35b-a3b-mtp-q6 Merged changes exporting SNAPCRAFT_PROJECT_NAME, SNAPCRAFT_PROJECT_VERSION, SNAPCRAFT_PROJECT_STAGE, and SNAPCRAFT_PART_INSTALL. Refactors _expand_env to the loader. Approved after fixing test failures.
qwen3.6-35b-a3b-mtp-q6 Merged. Exports SNAPCRAFT_PROJECT_NAME, SNAPCRAFT_PROJECT_VERSION, SNAPCRAFT_PROJECT_STAGE, and SNAPCRAFT_PART_INSTALL. Aligns with planned _expand_env loader refactoring. Approved after test fixes and maintainer review.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#5396 Export variables to testing environment snapcraft open Enhancement to export SNAPCRAFT_PROJECT_DIR, SNAPCRAFT_PROJECT_VERSION, and CRAFT_ARCH_BUILD_FOR into the testing environment so test projects can reference the generated snap path. Triaged by maintainer; no implementation or PR found in repo.
75%
#2122 many: introduce variables for part src and build snapcraft merged Merged following approval. Introduces new environment variables and replacements for part src and build directories, resolving LP #1763028. Consolidates SNAPCRAFT_* environment handling into a single location. Approved by one reviewer with passing CI checks.
74%
#872 feat: support nested project variables craft-application merged Merged following three approvals and successful CI checks. The update enables nested project variables, altering 22 files (+526/-62 lines). It relies on craft-parts PR #1220 and addresses SNAPCRAFT-1054.
71%
#3414 project loader: export SNAPCRAFT_TARGET_ARCH in build environment snapcraft merged Exported SNAPCRAFT_TARGET_ARCH in the build environment. Merged after single reviewer approval, modifying two files with six additions and two deletions.
71%
#302 parts: add project-specific global variables rockcraft merged Merged implementation adding project-specific global variables (name and version) via a prologue callback, following Snapcraft. Closes #299. Approved by two reviewers with passing CI. Refactors tests and modifies nine files.
70%
#1768 project: export the arch triplet into the environment snapcraft merged Merged changes exporting the SNAPCRAFT_ARCH_TRIPLET environment variable to support scripting. Approved by one reviewer, passed CI, and resolves issue #1752 with a minimal four-file update.
70%