pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/bazelbuild/bazel/commit/1fafa96c2b7dab92a0518516432f5fdff18ae6eb

aaaff3a3.css" /> Remove default visibility to public · bazelbuild/bazel@1fafa96 · GitHub
Skip to content

Commit 1fafa96

Browse files
limdorcopybara-github
authored andcommitted
Remove default visibility to public
Adhere to best practices https://bazel.build/concepts/visibility#best-practices An example should follow the best practices Closes #16432. PiperOrigin-RevId: 480791523 Change-Id: I509ede78747049009f906488863181639e551739
1 parent e05060d commit 1fafa96

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/cpp/BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
package(default_visibility = ["//visibility:public"])
2-
31
cc_library(
42
name = "hello-lib",
53
srcs = ["hello-lib.cc"],
@@ -27,4 +25,5 @@ cc_test(
2725
filegroup(
2826
name = "srcs",
2927
srcs = glob(["**"]),
28+
visibility = ["//examples:__pkg__"],
3029
)

examples/py/BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
package(default_visibility = ["//visibility:public"])
2-
31
py_library(
42
name = "lib",
53
srcs = ["lib.py"],
@@ -14,4 +12,5 @@ py_binary(
1412
filegroup(
1513
name = "srcs",
1614
srcs = ["BUILD"] + glob(["**/*.py"]),
15+
visibility = ["//examples:__pkg__"],
1716
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy