bazel-contrib / bazel-contrib/rules_go

Setting `GOARM64` environment variable for build actions?

Open
#4,556 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
1.5k
Forks
762
Avg merge
1d 11h
Merged PRs (30d)
12

Description

I cannot for the life of me figure out if there is an existing way to do this. It appears the env context is locked down, so not sure if this is actually going to require a code change.

FWIW, I'd like to set it to GOARM64="v9.0,lse,crypto"

Edit: See #4557 with what I think is how to do this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining how build actions expose environment variables and how the GitHub Actions env context is handled. Compare the requested GOARM64 value with the proposed approach in #4557. Done means determining whether this can be configured without a code change, or defining the required change and validating the resulting build behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, go
Domain
build-system, ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.