Skip to content

Commit

Permalink
Fix incompatible flags not applied to integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Jan 5, 2023
1 parent 14edd3a commit adfb2f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ build:incompatible --incompatible_config_setting_private_default_visibility
build:incompatible --incompatible_enforce_config_setting_visibility
build:incompatible --incompatible_disallow_empty_glob
# Also enable all incompatible flags in go_bazel_test by default.
test:incompatible --test_env=GO_BAZEL_TEST_BAZELFLAGS=--incompatible_load_proto_rules_from_bzl --incompatible_enable_cc_toolchain_resolution --incompatible_config_setting_private_default_visibility --incompatible_enforce_config_setting_visibility --incompatible_disallow_empty_glob
test:incompatible --test_env=GO_BAZEL_TEST_BAZELFLAGS='--incompatible_load_proto_rules_from_bzl --incompatible_enable_cc_toolchain_resolution --incompatible_config_setting_private_default_visibility --incompatible_enforce_config_setting_visibility --incompatible_disallow_empty_glob'
3 changes: 2 additions & 1 deletion go/tools/bzltestutil/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ go_test(
"wrap_test.go",
"xml_test.go",
],
data = glob(["testdata/**"]),
# Empty in integration tests or in distributions.
data = glob(["testdata/**"], allow_empty = True),
embed = [":bzltestutil"],
)

Expand Down

0 comments on commit adfb2f9

Please sign in to comment.