forked from bazel-contrib/rules_go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
go_cross_test
rule for cross-compiling tests.
Works the same as the `go_cross_binary` rule. Because of [this](bazelbuild/bazel#15224) bazel issue, there's no way to access the underlying `go_test` rule's `env` info provider. So until bazel 5.3.0 becomes the `rules_go` minimum bazel version, I see no way of passing through the `go_test` rule's `env` to the `go_cross_test`. This means any `env` set will not be used when the `go_cross_test` test is run, which is a little unfortunate. However, I think `go_cross_test` is still useful in the meantime despite this limitation. Signed-off-by: James Bartlett <[email protected]>
- Loading branch information
1 parent
18992d5
commit ab1a106
Showing
5 changed files
with
152 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters