← Back to issue list

project: export the arch triplet into the environment

View original Github issue

Metadata

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

Current evaluation

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.

Suggested action:

No scores available.

Issue body

It is exported as SNAPCRAFT_ARCH_TRIPLET and usable by the scripting functionality in snapcraft. Fixes: #1752 Signed-off-by: Ubuntu <sergio.schvezov@canonical.com> - [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)? - [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b 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.
qwen3.6-35b-a3b-mtp-q6 Merged. Exports SNAPCRAFT_ARCH_TRIPLET to the environment for snapcraft scripting, resolving issue #1752.
qwen3.6-35b-a3b-mtp-q6 Merged change exporting SNAPCRAFT_ARCH_TRIPLET to the environment for snapcraft scripting, resolving issue #1752.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#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.
78%
#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.
74%
#4332 environment: error when build-for arch variable cannot be evaluated snapcraft merged Merged. Resolves #4314 by raising an error instead of silently evaluating to None when SNAPCRAFT_ARCH_BUILD_FOR or SNAPCRAFT_ARCH_TRIPLET_BUILD_FOR cannot be determined for core20 snaps. Approved by three reviewers and passed CI.
71%
#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.
71%
#757 Export important project variables snapcraft merged 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.
70%