Closed
Description
What version of rules_go are you using?
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.34.0/rules_go-v0.34.0.zip",
What version of gazelle are you using?
bazel-gazelle-v0.26.0.tar.gz
What version of Bazel are you using?
> bazel version
Build label: 5.2.0
Does this issue reproduce with the latest releases of all the above?
rules_go is at the latest, this seem to be a go, not bazel issue.
What operating system and processor architecture are you using?
macos, intel.
Any other potentially useful information about your toolchain?
Don't think so.
What did you do?
bazel build -s :mytarget --action_env=GOAMD64=v4
What did you expect to see?
SUBCOMMAND: # .... [action 'GoCompilePkg src/...',
configuration: b98097a8192cd37499844c985c17d0baa5f64f76406c1ab83bdd5c41bb00cddb, execution platform: @local_config_platform//:host]
(cd /private/var/tmp/_bazel_pawel/592aedee41e8f957ae1ee499da1dedeb/execroot/__main__ && \
exec env - \
CGO_ENABLED=0 \
GOARCH=amd64 \
GOOS=linux \
GOPATH='' \
GOAMD64=v4 \ <<<<<<<<<<<<<<<<<<<<<<<<<<================ HERE
GOROOT=bazel-out/darwin-fastbuild-ST-8f6eb6207b9d/bin/external/io_bazel_rules_go/stdlib_ \
GOROOT_FINAL=GOROOT \
What did you see instead?
SUBCOMMAND: # .... [action 'GoCompilePkg src/...',
configuration: b98097a8192cd37499844c985c17d0baa5f64f76406c1ab83bdd5c41bb00cddb, execution platform:
@local_config_platform//:host] (cd
/private/var/tmp/_bazel_pawel/592aedee41e8f957ae1ee499da1dedeb/execroot/__main__ && \
exec env - \
CGO_ENABLED=0 \
GOARCH=amd64 \
GOOS=linux \
GOPATH='' \
GOROOT=bazel-out/darwin-fastbuild-ST-8f6eb6207b9d/bin/external/io_bazel_rules_go/stdlib_ \
GOROOT_FINAL=GOROOT \
It seems a bit weird, because I do the flag being passed in to other actions
SUBCOMMAND: # @com_google_protobuf//:api_proto [action 'Generating Descriptor Set proto_library
@com_google_protobuf//:api_proto', configuration:
17ab12c7286ec7c0e3ae7d5b7031d9ba6bf19204c617431f8d60e2ee53b7d12a, execution platform:
@local_config_platform//:host]
(cd /private/var/tmp/_bazel_pawel/592aedee41e8f957ae1ee499da1dedeb/execroot/__main__ && \
exec env - \
GOAMD64=v7 \
Metadata
Metadata
Assignees
Labels
No labels