Skip to content

go_binary, go_test: add gotags attribute#2440

Merged
jayconrod merged 14 commits intobazel-contrib:masterfrom
jayconrod:gotags
Apr 20, 2020
Merged

go_binary, go_test: add gotags attribute#2440
jayconrod merged 14 commits intobazel-contrib:masterfrom
jayconrod:gotags

Conversation

@jayconrod
Copy link
Copy Markdown
Collaborator

The gotags attribute sets which build tags are enabled when evaluting
build constraints. This is equivalent to setting
--@io_bazel_rules_go//go/config:tags on the command line.

Fixes #1351

The gotags attribute sets which build tags are enabled when evaluting
build constraints. This is equivalent to setting
--@io_bazel_rules_go//go/config:tags on the command line.

Fixes bazel-contrib#1351
@jayconrod jayconrod merged commit 8f4ebbd into bazel-contrib:master Apr 20, 2020
@jayconrod jayconrod deleted the gotags branch April 20, 2020 23:19
yushan26 pushed a commit to yushan26/rules_go that referenced this pull request Jun 16, 2025
…contrib#2440)

bazel_features has a bug where it doesn't detect Bazel 8 rc3 correctly.
This is fixed in release 1.21.0.

From the discussion on
bazel-contrib/bazel_features#82,
it's likely this only occurs due to the "rc" notation of the Bazel
release, so an
earlier bazel_features version will probably work fine once Bazel 8 is
no longer rc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

go_binary: support build constraints via build_setting

2 participants