← Back to issue list

cli: enable SNAPCRAFT_TARGET_ARCH envvar matching --target-arch

View original Github issue

Metadata

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

Current evaluation

Closed unmerged after maintainers rejected expanding environment-variable support for CLI options; SNAPCRAFT_TARGET_ARCH was not accepted as an alternative to --target-arch.

Resolution: closed stale

Reason: Closed without merge after maintainer review. On 2021-08-10, Chris Patterson said @sergiusens did not want to expand environment-variable use for CLI options, so no release change shipped.

Evaluated by: mr-cal-bot

No scores available.

Issue body

But ensure it is scrubbed from build provider flags so that it doesn't get passed into target environment and cause behavior changes. 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
stealth/space-bunny-alpha — closed stale Closed unmerged after maintainers rejected expanding environment-variable support for CLI options; SNAPCRAFT_TARGET_ARCH was not accepted as an alternative to --target-arch.
stealth/space-bunny-alpha — closed stale PR #3568 was closed unmerged after maintainers rejected broader environment-variable support for CLI options; no release change was made.
stealth/space-bunny-alpha — closed not a bug Closed unmerged after maintainer @sergiusens opposed expanding environment-variable support for CLI options; no release change resulted.
qwen/qwen3.6-35b-a3b — — Closed without merging. Maintainer @sergiusens rejected the change, deciding against expanding environment variable usage for CLI options. The pull request was abandoned following internal discussion.
qwen3.6-35b-a3b-mtp-q6 — — Rejected. Maintainers decided against expanding environment variable usage for CLI options, closing the proposed SNAPCRAFT_TARGET_ARCH sync with --target-arch without merging.

Update history

No update history recorded yet.

Related work

  • Duplicate Of: snapcore/snapcraft#3415 (confidence 90%)

    An earlier identical proposal was also closed unmerged; the requested CLI environment-variable behavior was never added.

Related issues

Issue Project State Summary Similarity
#3415 cli: enable SNAPCRAFT_TARGET_ARCH envvar matching --target-arch snapcraft closed Closed unmerged with changes requested. Superseded by merged PR #3414 (ff2cd96bb), which exported SNAPCRAFT_TARGET_ARCH in the project loader's build environment instead of adding a CLI envvar option.
91%
#3414 project loader: export SNAPCRAFT_TARGET_ARCH in build environment snapcraft merged Merged PR #3414 (commit ff2cd96bb) added SNAPCRAFT_TARGET_ARCH to the global build environment in set_global_environment() for core22, alongside SNAPCRAFT_ARCH_TRIPLET.
74%
#3418 project: always set target arch even if not cross compiling snapcraft merged Merged PR #3418 in commit a05e64594, setting an explicit target architecture for native and cross builds and consistently defining SNAPCRAFT_TARGET_ARCH.
73%
#1813634 not reliable way to detect target architecture snapcraft (launchpad) open Snapcraft 8.0.0 added explicit build-for architecture variables, superseding the ambiguous 3.0.1-era target_arch and SNAPCRAFT_ARCH_TRIPLET behavior.
73%
#4332 environment: error when build-for arch variable cannot be evaluated snapcraft merged Merged PR #4332 (48bd0632f) now errors on unevaluable core20 SNAPCRAFT_ARCH_BUILD_FOR and SNAPCRAFT_ARCH_TRIPLET_BUILD_FOR variables instead of producing "None".
71%
#1474 kbuild plugin: use ARCH from environment if set snapcraft closed Closed unmerged: a maintainer said ARCH should be set in snapcraft.yaml because honoring the process environment would not fix Launchpad builds.
70%
#1809068 SNAPCRAFT_ environment variables not exposed to version-script snapcraft (launchpad) closed Closed after maintainers directed users from version-script to snapcraftctl set-version; no fix was cited for the missing SNAPCRAFT_* variables.
70%