Change the default visibility for packages to //visibility:private and then change individual build rules back to their prior visibility. The motivation for this change is making sure future additions are private by default so that new rules are not accidentally public. Some of the rules that are currently public were not meant to be, and the fact that they are marked public does not mean they should be used. As always, the rule is never spell out anything with the word internal (or any synonym for internal). Some of these accidentally public rules will be manually corrected with future changes. PiperOrigin-RevId: 942105000 Change-Id: I442c1c16107d6e19d1a79654ed48de2fa69914a9
diff --git a/absl/time/BUILD.bazel b/absl/time/BUILD.bazel index a182c65..cca77da 100644 --- a/absl/time/BUILD.bazel +++ b/absl/time/BUILD.bazel
@@ -25,7 +25,7 @@ ) package( - default_visibility = ["//visibility:public"], + default_visibility = ["//visibility:private"], features = [ "header_modules", "layering_check", @@ -53,6 +53,7 @@ ], copts = ABSL_DEFAULT_COPTS, linkopts = ABSL_DEFAULT_LINKOPTS, + visibility = ["//visibility:public"], deps = [ "//absl/base", "//absl/base:config", @@ -77,6 +78,7 @@ ], copts = ABSL_DEFAULT_COPTS, linkopts = ABSL_DEFAULT_LINKOPTS, + visibility = ["//visibility:public"], deps = [ ":time", "//absl/base:config", @@ -99,6 +101,7 @@ ], copts = ABSL_DEFAULT_COPTS, linkopts = ABSL_DEFAULT_LINKOPTS, + visibility = ["//visibility:public"], deps = [ ":clock_interface", ":time",