Skip to content

Commit c19f043

Browse files
committed
Ensure compatibility with --incompatible_config_setting_private_default_visibility
1 parent c3d1824 commit c19f043

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bzl/config/BUILD.bazel

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
22

3+
package(
4+
default_visibility = ["//visibility:public"],
5+
)
6+
37
string_flag(
48
name = "helper_build_mode",
59
build_setting_default = "auto",
@@ -8,7 +12,6 @@ string_flag(
812
"from_source",
913
"prebuilt",
1014
],
11-
visibility = ["//visibility:public"],
1215
)
1316

1417
string_flag(
@@ -19,7 +22,6 @@ string_flag(
1922
# add it to .gitignore and point --credential_helper in .bazelrc to the same path.
2023
# This avoid the need for a shell wrapper but modifies the source tree.
2124
build_setting_default = "%workdir%/bin/credential-helper",
22-
visibility = ["//visibility:public"],
2325
)
2426

2527
string_flag(
@@ -29,7 +31,6 @@ string_flag(
2931
# copies the exe into the source tree.
3032
# The path chosen here should also be used by --credential_helper in .bazelrc
3133
build_setting_default = "%workspace%\\tools\\credential-helper.exe",
32-
visibility = ["//visibility:public"],
3334
)
3435

3536
config_setting(

0 commit comments

Comments
 (0)