Mostly internal change: Optimize OSS transforms

This should only affect the Bazel `BUILD.bazel` files and their formatting.

PiperOrigin-RevId: 538426054
Change-Id: I0162726d3fb4bcb4d7938cddc6f39e0d9f2b4a3d
This commit is contained in:
Christian Blichmann 2023-06-07 02:22:31 -07:00 committed by Copybara-Service
parent 6cd83d68de
commit 72452e1582
16 changed files with 47 additions and 31 deletions

View File

@ -15,9 +15,7 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library")
package(
default_visibility = ["//sandboxed_api:__subpackages__"],
)
package(default_visibility = ["//sandboxed_api:__subpackages__"])
licenses(["notice"])

View File

@ -18,9 +18,7 @@ load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library")
load("//sandboxed_api/bazel:sapi.bzl", "sapi_library")
package(
default_visibility = ["//sandboxed_api:__subpackages__"],
)
package(default_visibility = ["//sandboxed_api:__subpackages__"])
licenses(["notice"])

View File

@ -16,6 +16,8 @@ load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library")
load("//sandboxed_api/bazel:sapi.bzl", "sapi_library")
package(default_visibility = ["//sandboxed_api:__subpackages__"])
licenses(["notice"])
sapi_proto_library(

View File

@ -17,6 +17,8 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
load("//sandboxed_api/bazel:sapi.bzl", "sapi_library")
package(default_visibility = ["//sandboxed_api:__subpackages__"])
licenses(["notice"])
sapi_library(

View File

@ -18,9 +18,7 @@ load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
load("//sandboxed_api/bazel:embed_data.bzl", "sapi_cc_embed_data")
load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library")
package(
default_visibility = ["//sandboxed_api:__subpackages__"],
)
package(default_visibility = ["//sandboxed_api:__subpackages__"])
licenses(["notice"])
@ -44,9 +42,7 @@ cc_library(
cc_library(
name = "allow_unrestricted_networking",
hdrs = [
"allow_unrestricted_networking.h",
],
hdrs = ["allow_unrestricted_networking.h"],
copts = sapi_platform_copts(),
visibility = [
"//sandboxed_api/sandbox2:__pkg__",

View File

@ -21,6 +21,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"])
# Executor

View File

@ -18,6 +18,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"])
# Executor

View File

@ -20,6 +20,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"])
# Executor

View File

@ -16,6 +16,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"])
# Executor

View File

@ -21,6 +21,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"])
# Executor

View File

@ -22,6 +22,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"])
# Executor

View File

@ -14,6 +14,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"])
# Executor

View File

@ -14,11 +14,9 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(
default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
],
)
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"])

View File

@ -15,11 +15,9 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library")
package(
default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
],
)
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"])

View File

@ -15,18 +15,14 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
_DEFAULT_VISIBILITY = [
"//security/bedebox:__subpackages__",
"//sandboxed_api:__subpackages__",
]
package(
default_visibility = _DEFAULT_VISIBILITY,
)
package(default_visibility = _DEFAULT_VISIBILITY)
package_group(
name = "minielf_users",
packages = [
"//buzz/diffractor/sandbox/...", # mbonadei@ and ossu@ (alternatively rtc-diffractor-eng@)
],
)

View File

@ -25,11 +25,11 @@ cc_binary(
copts = sapi_platform_copts(),
visibility = ["//visibility:public"],
deps = [
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"//sandboxed_api/util:fileops",
"//sandboxed_api/util:raw_logging",
"//sandboxed_api/util:strerror",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
],
)
@ -45,10 +45,10 @@ cc_test(
data = ["testdata/filewrapper_embedded.bin"],
deps = [
":filewrapper_embedded",
"@com_google_googletest//:gtest_main",
"@com_google_absl//absl/strings",
"//sandboxed_api:testing",
"//sandboxed_api/util:file_helpers",
"//sandboxed_api/util:status_matchers",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest_main",
],
)