diff --git a/api/bazel/BUILD b/api/bazel/BUILD index 279c7c9e6a9b..4b582bb8be3f 100644 --- a/api/bazel/BUILD +++ b/api/bazel/BUILD @@ -1,7 +1,7 @@ -licenses(["notice"]) # Apache 2 - load("@io_bazel_rules_go//proto:compiler.bzl", "go_proto_compiler") +licenses(["notice"]) # Apache 2 + go_proto_compiler( name = "pgv_plugin_go", options = ["lang=go"], diff --git a/api/bazel/api_build_system.bzl b/api/bazel/api_build_system.bzl index 7e88ab2bf9e5..e9119b329d01 100644 --- a/api/bazel/api_build_system.bzl +++ b/api/bazel/api_build_system.bzl @@ -1,7 +1,8 @@ +load("@rules_cc//cc:defs.bzl", "cc_test") load("@com_envoyproxy_protoc_gen_validate//bazel:pgv_proto_library.bzl", "pgv_cc_proto_library") load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") load("@com_google_protobuf//:protobuf.bzl", _py_proto_library = "py_proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_grpc_library", "go_proto_library") +load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") load("@io_bazel_rules_go//go:def.bzl", "go_test") load("@rules_proto//proto:defs.bzl", "proto_library") load( @@ -138,7 +139,7 @@ def api_cc_py_proto_library( _api_cc_grpc_library(name = cc_grpc_name, proto = relative_name, deps = cc_proto_deps) def api_cc_test(name, **kwargs): - native.cc_test( + cc_test( name = name, **kwargs ) diff --git a/api/bazel/repositories.bzl b/api/bazel/repositories.bzl index af1f11331d01..a64e733cf74a 100644 --- a/api/bazel/repositories.bzl +++ b/api/bazel/repositories.bzl @@ -1,4 +1,3 @@ -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load(":envoy_http_archive.bzl", "envoy_http_archive") load(":repository_locations.bzl", "REPOSITORY_LOCATIONS") diff --git a/api/envoy/service/auth/v2alpha/BUILD b/api/envoy/service/auth/v2alpha/BUILD index 0bd31fdc6ff8..c75dabe1a8a0 100644 --- a/api/envoy/service/auth/v2alpha/BUILD +++ b/api/envoy/service/auth/v2alpha/BUILD @@ -1,9 +1,9 @@ +load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") + licenses(["notice"]) # Apache 2 # DO NOT EDIT. This file is generated by tools/proto_sync.py. -load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") - api_proto_package( has_services = True, deps = ["//envoy/service/auth/v2:pkg"], diff --git a/api/test/build/BUILD b/api/test/build/BUILD index 59f0a3641011..2dae9fa0de03 100644 --- a/api/test/build/BUILD +++ b/api/test/build/BUILD @@ -1,7 +1,7 @@ -licenses(["notice"]) # Apache 2 - load("@envoy_api//bazel:api_build_system.bzl", "api_cc_test", "api_go_test") +licenses(["notice"]) # Apache 2 + api_cc_test( name = "build_test", srcs = ["build_test.cc"], diff --git a/api/test/validate/BUILD b/api/test/validate/BUILD index 4398672c27af..c9a7ba701f97 100644 --- a/api/test/validate/BUILD +++ b/api/test/validate/BUILD @@ -1,7 +1,7 @@ -licenses(["notice"]) # Apache 2 - load("@envoy_api//bazel:api_build_system.bzl", "api_cc_test") +licenses(["notice"]) # Apache 2 + api_cc_test( name = "pgv_test", srcs = ["pgv_test.cc"], diff --git a/api/tools/BUILD b/api/tools/BUILD index 8d2207b94070..2273a9b9dd0b 100644 --- a/api/tools/BUILD +++ b/api/tools/BUILD @@ -1,3 +1,5 @@ +load("@rules_python//python:defs.bzl", "py_binary", "py_test") + licenses(["notice"]) # Apache 2 py_binary( diff --git a/api/versioning/BUILD b/api/versioning/BUILD index 1bc4b51231e2..ccea9008a05f 100644 --- a/api/versioning/BUILD +++ b/api/versioning/BUILD @@ -1,9 +1,9 @@ # DO NOT EDIT. This file is generated by tools/proto_format/active_protos_gen.py. -licenses(["notice"]) # Apache 2 - load("@rules_proto//proto:defs.bzl", "proto_library") +licenses(["notice"]) # Apache 2 + # This tracks active development versions of protos. proto_library( name = "active_protos", diff --git a/bazel/BUILD b/bazel/BUILD index f94bc1da4433..c670adc0620d 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -1,13 +1,11 @@ load("@rules_cc//cc:defs.bzl", "cc_library", "cc_proto_library") +load("//bazel:envoy_build_system.bzl", "envoy_package") +load("//bazel:envoy_internal.bzl", "envoy_select_force_libcpp") licenses(["notice"]) # Apache 2 -load("//bazel:envoy_build_system.bzl", "envoy_package") - envoy_package() -load("//bazel:envoy_internal.bzl", "envoy_select_force_libcpp") - exports_files([ "gen_sh_test_runner.sh", "sh_test_wrapper.sh", diff --git a/bazel/envoy_binary.bzl b/bazel/envoy_binary.bzl index e53e42d8e284..16adfb38a439 100644 --- a/bazel/envoy_binary.bzl +++ b/bazel/envoy_binary.bzl @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_binary") + # DO NOT LOAD THIS FILE. Load envoy_build_system.bzl instead. # Envoy binary targets load( @@ -27,7 +29,7 @@ def envoy_cc_binary( linkopts = linkopts + _envoy_stamped_linkopts() deps = deps + _envoy_stamped_deps() deps = deps + [envoy_external_dep_path(dep) for dep in external_deps] + envoy_stdlib_deps() - native.cc_binary( + cc_binary( name = name, srcs = srcs, data = data, diff --git a/bazel/envoy_library.bzl b/bazel/envoy_library.bzl index 69453fd1b6fd..6f8c56497093 100644 --- a/bazel/envoy_library.bzl +++ b/bazel/envoy_library.bzl @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + # DO NOT LOAD THIS FILE. Load envoy_build_system.bzl instead. # Envoy library targets load( @@ -6,7 +8,6 @@ load( "envoy_external_dep_path", "envoy_linkstatic", ) -load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library", "py_proto_library") load("@envoy_api//bazel:api_build_system.bzl", "api_cc_py_proto_library") # As above, but wrapped in list form for adding to dep lists. This smell seems needed as @@ -23,7 +24,7 @@ def tcmalloc_external_deps(repository): # all envoy targets pass through an envoy-declared skylark function where they can be modified # before being passed to a native bazel function. def envoy_basic_cc_library(name, deps = [], external_deps = [], **kargs): - native.cc_library( + cc_library( name = name, deps = deps + [envoy_external_dep_path(dep) for dep in external_deps], **kargs @@ -101,8 +102,7 @@ def envoy_cc_library( "@envoy//bazel:compdb_build": ["@envoy//bazel/external:empty.cc"], "//conditions:default": [], }) - - native.cc_library( + cc_library( name = name, srcs = srcs, hdrs = hdrs, @@ -131,7 +131,7 @@ def envoy_cc_library( # Intended for usage by external consumers. This allows them to disambiguate # include paths via `external/envoy...` - native.cc_library( + cc_library( name = name + "_with_external_headers", hdrs = hdrs, copts = envoy_copts(repository) + copts, diff --git a/bazel/envoy_test.bzl b/bazel/envoy_test.bzl index fb68b46f7e64..0e439d84dd12 100644 --- a/bazel/envoy_test.bzl +++ b/bazel/envoy_test.bzl @@ -1,3 +1,6 @@ +load("@rules_python//python:defs.bzl", "py_binary") +load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test") + # DO NOT LOAD THIS FILE. Load envoy_build_system.bzl instead. # Envoy test targets. This includes both test library and test binary targets. load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar") @@ -29,8 +32,7 @@ def _envoy_cc_test_infrastructure_library( **kargs): # Add implicit tcmalloc external dependency(if available) in order to enable CPU and heap profiling in tests. deps += tcmalloc_external_deps(repository) - - native.cc_library( + cc_library( name = name, srcs = srcs, hdrs = hdrs, @@ -105,7 +107,7 @@ def envoy_cc_fuzz_test( tags = tags, **kwargs ) - native.cc_test( + cc_test( name = name, copts = fuzz_copts + envoy_copts("@envoy", test = True), linkopts = _envoy_test_linkopts(), @@ -129,7 +131,7 @@ def envoy_cc_fuzz_test( # https://github.com/google/oss-fuzz/blob/master/projects/envoy/build.sh. It won't yield # anything useful on its own, as it expects to be run in an environment where the linker options # provide a path to FuzzingEngine. - native.cc_binary( + cc_binary( name = name + "_driverless", copts = fuzz_copts + envoy_copts("@envoy", test = True), linkopts = ["-lFuzzingEngine"] + _envoy_test_linkopts(), @@ -138,8 +140,7 @@ def envoy_cc_fuzz_test( deps = [":" + test_lib_name], tags = ["manual"] + tags, ) - - native.cc_test( + cc_test( name = name + "_with_libfuzzer", copts = fuzz_copts + envoy_copts("@envoy", test = True), linkopts = ["-fsanitize=fuzzer"] + _envoy_test_linkopts(), @@ -171,8 +172,7 @@ def envoy_cc_test( size = "medium", flaky = False): coverage_tags = tags + ([] if coverage else ["nocoverage"]) - - native.cc_test( + cc_test( name = name, srcs = srcs, data = data, @@ -277,7 +277,7 @@ def envoy_py_test_binary( external_deps = [], deps = [], **kargs): - native.py_binary( + py_binary( name = name, deps = deps + [envoy_external_dep_path(dep) for dep in external_deps], **kargs diff --git a/bazel/external/BUILD b/bazel/external/BUILD index 11dabbc90cee..719adb21855a 100644 --- a/bazel/external/BUILD +++ b/bazel/external/BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["notice"]) # Apache 2 # Use a wrapper cc_library with an empty source source file to force diff --git a/bazel/external/apache_thrift.BUILD b/bazel/external/apache_thrift.BUILD index 02cbf535514d..db12d91f0b84 100644 --- a/bazel/external/apache_thrift.BUILD +++ b/bazel/external/apache_thrift.BUILD @@ -1,3 +1,5 @@ +load("@rules_python//python:defs.bzl", "py_library") + licenses(["notice"]) # Apache 2 # The apache-thrift distribution does not keep the thrift files in a directory with the diff --git a/bazel/external/boringssl_fips.BUILD b/bazel/external/boringssl_fips.BUILD index 6add632b3a34..7b913e413614 100644 --- a/bazel/external/boringssl_fips.BUILD +++ b/bazel/external/boringssl_fips.BUILD @@ -1,7 +1,8 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_cc//cc:defs.bzl", "cc_library") load(":genrule_cmd.bzl", "genrule_cmd") +licenses(["notice"]) # Apache 2 + cc_library( name = "crypto", srcs = [ diff --git a/bazel/external/compiler_rt.BUILD b/bazel/external/compiler_rt.BUILD index 96d90b46ab23..82dfe8f8be03 100644 --- a/bazel/external/compiler_rt.BUILD +++ b/bazel/external/compiler_rt.BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["notice"]) # Apache 2 cc_library( diff --git a/bazel/external/fmtlib.BUILD b/bazel/external/fmtlib.BUILD index 7ac5ecceffbd..c4d97a2c9e69 100644 --- a/bazel/external/fmtlib.BUILD +++ b/bazel/external/fmtlib.BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["notice"]) # Apache 2 cc_library( diff --git a/bazel/external/http-parser.BUILD b/bazel/external/http-parser.BUILD index 303950d7c00b..5fefacde47dc 100644 --- a/bazel/external/http-parser.BUILD +++ b/bazel/external/http-parser.BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["notice"]) # Apache 2 cc_library( diff --git a/bazel/external/jinja.BUILD b/bazel/external/jinja.BUILD index f7ce6718caeb..4ca60460e41d 100644 --- a/bazel/external/jinja.BUILD +++ b/bazel/external/jinja.BUILD @@ -1,3 +1,5 @@ +load("@rules_python//python:defs.bzl", "py_library") + licenses(["notice"]) # Apache 2 py_library( diff --git a/bazel/external/libcircllhist.BUILD b/bazel/external/libcircllhist.BUILD index a77269ef60b0..4dff51012671 100644 --- a/bazel/external/libcircllhist.BUILD +++ b/bazel/external/libcircllhist.BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["notice"]) # Apache 2 cc_library( diff --git a/bazel/external/libprotobuf_mutator.BUILD b/bazel/external/libprotobuf_mutator.BUILD index 12fd8b49b51f..697a3c6334a4 100644 --- a/bazel/external/libprotobuf_mutator.BUILD +++ b/bazel/external/libprotobuf_mutator.BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["notice"]) # Apache 2 cc_library( diff --git a/bazel/external/markupsafe.BUILD b/bazel/external/markupsafe.BUILD index 4d792e1d4ad3..87e2871e9dfc 100644 --- a/bazel/external/markupsafe.BUILD +++ b/bazel/external/markupsafe.BUILD @@ -1,3 +1,5 @@ +load("@rules_python//python:defs.bzl", "py_library") + licenses(["notice"]) # Apache 2 py_library( diff --git a/bazel/external/quiche.BUILD b/bazel/external/quiche.BUILD index d19e7e80ae53..9bf32c27c6c5 100644 --- a/bazel/external/quiche.BUILD +++ b/bazel/external/quiche.BUILD @@ -1,3 +1,13 @@ +load("@rules_cc//cc:defs.bzl", "cc_proto_library") +load("@rules_proto//proto:defs.bzl", "proto_library") +load(":genrule_cmd.bzl", "genrule_cmd") +load( + "@envoy//bazel:envoy_build_system.bzl", + "envoy_cc_library", + "envoy_cc_test", + "envoy_cc_test_library", +) + licenses(["notice"]) # Apache 2 # QUICHE is Google's implementation of QUIC and related protocols. It is the @@ -25,16 +35,6 @@ licenses(["notice"]) # Apache 2 # QUICHE platform APIs in //source/extensions/quic_listeners/quiche/platform/, # should remain largely the same. -load("@rules_proto//proto:defs.bzl", "proto_library") -load(":genrule_cmd.bzl", "genrule_cmd") -load( - "@envoy//bazel:envoy_build_system.bzl", - "envoy_cc_library", - "envoy_cc_test", - "envoy_cc_test_library", - "envoy_proto_library", -) - src_files = glob([ "**/*.h", "**/*.c", diff --git a/bazel/external/rapidjson.BUILD b/bazel/external/rapidjson.BUILD index 97948eee7072..a74a0fe55d37 100644 --- a/bazel/external/rapidjson.BUILD +++ b/bazel/external/rapidjson.BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["notice"]) # Apache 2 cc_library( diff --git a/bazel/external/spdlog.BUILD b/bazel/external/spdlog.BUILD index dec2ab43d3b6..4be48da95173 100644 --- a/bazel/external/spdlog.BUILD +++ b/bazel/external/spdlog.BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["notice"]) # Apache 2 cc_library( diff --git a/bazel/external/sqlparser.BUILD b/bazel/external/sqlparser.BUILD index 8e14f45e5360..5a12383074f5 100644 --- a/bazel/external/sqlparser.BUILD +++ b/bazel/external/sqlparser.BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["notice"]) # Apache 2 cc_library( diff --git a/bazel/external/tclap.BUILD b/bazel/external/tclap.BUILD index fabf6c4c3f99..39bd270fd749 100644 --- a/bazel/external/tclap.BUILD +++ b/bazel/external/tclap.BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["notice"]) # Apache 2 cc_library( diff --git a/bazel/external/twitter_common_finagle_thrift.BUILD b/bazel/external/twitter_common_finagle_thrift.BUILD index ee1d121d77c9..9121874d4350 100644 --- a/bazel/external/twitter_common_finagle_thrift.BUILD +++ b/bazel/external/twitter_common_finagle_thrift.BUILD @@ -1,3 +1,5 @@ +load("@rules_python//python:defs.bzl", "py_library") + licenses(["notice"]) # Apache 2 py_library( diff --git a/bazel/external/twitter_common_lang.BUILD b/bazel/external/twitter_common_lang.BUILD index 469ee3331cff..40fac2f1d1ed 100644 --- a/bazel/external/twitter_common_lang.BUILD +++ b/bazel/external/twitter_common_lang.BUILD @@ -1,3 +1,5 @@ +load("@rules_python//python:defs.bzl", "py_library") + licenses(["notice"]) # Apache 2 py_library( diff --git a/bazel/external/twitter_common_rpc.BUILD b/bazel/external/twitter_common_rpc.BUILD index 8e8622ebb4db..df79842360bd 100644 --- a/bazel/external/twitter_common_rpc.BUILD +++ b/bazel/external/twitter_common_rpc.BUILD @@ -1,3 +1,5 @@ +load("@rules_python//python:defs.bzl", "py_library") + licenses(["notice"]) # Apache 2 py_library( diff --git a/bazel/external/wee8.BUILD b/bazel/external/wee8.BUILD index c6e64f43bc3b..341e1ad66c07 100644 --- a/bazel/external/wee8.BUILD +++ b/bazel/external/wee8.BUILD @@ -1,7 +1,8 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_cc//cc:defs.bzl", "cc_library") load(":genrule_cmd.bzl", "genrule_cmd") +licenses(["notice"]) # Apache 2 + cc_library( name = "wee8", srcs = [ diff --git a/bazel/external/xxhash.BUILD b/bazel/external/xxhash.BUILD index 5f8120dfee0f..33f9bbe69705 100644 --- a/bazel/external/xxhash.BUILD +++ b/bazel/external/xxhash.BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["notice"]) # Apache 2 cc_library( diff --git a/bazel/foreign_cc/BUILD b/bazel/foreign_cc/BUILD index 9d05d6d0dd68..747d2b7e1bf5 100644 --- a/bazel/foreign_cc/BUILD +++ b/bazel/foreign_cc/BUILD @@ -1,8 +1,9 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_cc//cc:defs.bzl", "cc_library") load("//bazel:envoy_build_system.bzl", "envoy_cmake_external", "envoy_package") load("@rules_foreign_cc//tools/build_defs:configure.bzl", "configure_make") +licenses(["notice"]) # Apache 2 + envoy_package() # autotools packages are unusable on Windows as-is diff --git a/bazel/genrule_repository.bzl b/bazel/genrule_repository.bzl index 0689c39c88b0..ff4e6fe9dcaa 100644 --- a/bazel/genrule_repository.bzl +++ b/bazel/genrule_repository.bzl @@ -115,7 +115,7 @@ def _genrule_environment(ctx): ld_flags = [] ld_libs = [] if ctx.var.get("ENVOY_CONFIG_COVERAGE"): - ld_libs += ["-lgcov"] + ld_libs.append("-lgcov") if ctx.var.get("ENVOY_CONFIG_ASAN"): cc_flags += asan_flags ld_flags += asan_flags @@ -137,8 +137,8 @@ def _genrule_environment(ctx): lines.append("export ASAN_OPTIONS=detect_leaks=0") lines.append("") - out = ctx.new_file(ctx.attr.name + ".sh") - ctx.file_action(out, "\n".join(lines)) + out = ctx.actions.declare_file(ctx.attr.name + ".sh") + ctx.actions.write(out, "\n".join(lines)) return DefaultInfo(files = depset([out])) genrule_environment = rule( diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 39bc408ea748..6d104839e91a 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -191,6 +191,7 @@ def envoy_dependencies(skip_targets = []): _repository_impl("bazel_toolchains") _repository_impl("bazel_compdb") _repository_impl("envoy_build_tools") + _repository_impl("rules_cc") # Unconditional, since we use this only for compiler-agnostic fuzzing utils. _org_llvm_releases_compiler_rt() diff --git a/bazel/repository_locations.bzl b/bazel/repository_locations.bzl index a206815b962a..3d82497d31f6 100644 --- a/bazel/repository_locations.bzl +++ b/bazel/repository_locations.bzl @@ -358,6 +358,14 @@ DEPENDENCY_REPOSITORIES = dict( urls = ["https://github.com/bazelbuild/rules_go/releases/download/v0.20.3/rules_go-v0.20.3.tar.gz"], use_category = ["build"], ), + rules_cc = dict( + sha256 = "9d48151ea71b3e225adfb6867e6d2c7d0dce46cbdc8710d9a9a628574dfd40a0", + strip_prefix = "rules_cc-818289e5613731ae410efb54218a4077fb9dbb03", + # 2020-05-13 + # TODO(lizan): pin to a point releases when there's a released version. + urls = ["https://github.com/bazelbuild/rules_cc/archive/818289e5613731ae410efb54218a4077fb9dbb03.tar.gz"], + use_category = ["build"], + ), rules_foreign_cc = dict( sha256 = "3184c244b32e65637a74213fc448964b687390eeeca42a36286f874c046bba15", strip_prefix = "rules_foreign_cc-7bc4be735b0560289f6b86ab6136ee25d20b65b7", diff --git a/configs/BUILD b/configs/BUILD index 451946f1805d..f13fcb170f3a 100644 --- a/configs/BUILD +++ b/configs/BUILD @@ -1,13 +1,12 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", + "envoy_py_test_binary", ) -envoy_package() +licenses(["notice"]) # Apache 2 -load("//bazel:envoy_build_system.bzl", "envoy_py_test_binary") +envoy_package() envoy_py_test_binary( name = "configgen", diff --git a/examples/BUILD b/examples/BUILD index 341a86be7600..d89668cf1c1c 100644 --- a/examples/BUILD +++ b/examples/BUILD @@ -1,10 +1,10 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() filegroup( diff --git a/generated_api_shadow/bazel/BUILD b/generated_api_shadow/bazel/BUILD index 279c7c9e6a9b..4b582bb8be3f 100644 --- a/generated_api_shadow/bazel/BUILD +++ b/generated_api_shadow/bazel/BUILD @@ -1,7 +1,7 @@ -licenses(["notice"]) # Apache 2 - load("@io_bazel_rules_go//proto:compiler.bzl", "go_proto_compiler") +licenses(["notice"]) # Apache 2 + go_proto_compiler( name = "pgv_plugin_go", options = ["lang=go"], diff --git a/generated_api_shadow/bazel/api_build_system.bzl b/generated_api_shadow/bazel/api_build_system.bzl index 7e88ab2bf9e5..e9119b329d01 100644 --- a/generated_api_shadow/bazel/api_build_system.bzl +++ b/generated_api_shadow/bazel/api_build_system.bzl @@ -1,7 +1,8 @@ +load("@rules_cc//cc:defs.bzl", "cc_test") load("@com_envoyproxy_protoc_gen_validate//bazel:pgv_proto_library.bzl", "pgv_cc_proto_library") load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") load("@com_google_protobuf//:protobuf.bzl", _py_proto_library = "py_proto_library") -load("@io_bazel_rules_go//proto:def.bzl", "go_grpc_library", "go_proto_library") +load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") load("@io_bazel_rules_go//go:def.bzl", "go_test") load("@rules_proto//proto:defs.bzl", "proto_library") load( @@ -138,7 +139,7 @@ def api_cc_py_proto_library( _api_cc_grpc_library(name = cc_grpc_name, proto = relative_name, deps = cc_proto_deps) def api_cc_test(name, **kwargs): - native.cc_test( + cc_test( name = name, **kwargs ) diff --git a/generated_api_shadow/bazel/repositories.bzl b/generated_api_shadow/bazel/repositories.bzl index af1f11331d01..a64e733cf74a 100644 --- a/generated_api_shadow/bazel/repositories.bzl +++ b/generated_api_shadow/bazel/repositories.bzl @@ -1,4 +1,3 @@ -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load(":envoy_http_archive.bzl", "envoy_http_archive") load(":repository_locations.bzl", "REPOSITORY_LOCATIONS") diff --git a/generated_api_shadow/envoy/service/auth/v2alpha/BUILD b/generated_api_shadow/envoy/service/auth/v2alpha/BUILD index 0bd31fdc6ff8..c75dabe1a8a0 100644 --- a/generated_api_shadow/envoy/service/auth/v2alpha/BUILD +++ b/generated_api_shadow/envoy/service/auth/v2alpha/BUILD @@ -1,9 +1,9 @@ +load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") + licenses(["notice"]) # Apache 2 # DO NOT EDIT. This file is generated by tools/proto_sync.py. -load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") - api_proto_package( has_services = True, deps = ["//envoy/service/auth/v2:pkg"], diff --git a/include/envoy/access_log/BUILD b/include/envoy/access_log/BUILD index 991715a6a830..c2ba9dba547b 100644 --- a/include/envoy/access_log/BUILD +++ b/include/envoy/access_log/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/api/BUILD b/include/envoy/api/BUILD index 0bdbc5a87588..6855cc6b8688 100644 --- a/include/envoy/api/BUILD +++ b/include/envoy/api/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/buffer/BUILD b/include/envoy/buffer/BUILD index e22d136b17de..3f2880cb720e 100644 --- a/include/envoy/buffer/BUILD +++ b/include/envoy/buffer/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/common/BUILD b/include/envoy/common/BUILD index b950bcbd7fbe..4d427383bf21 100644 --- a/include/envoy/common/BUILD +++ b/include/envoy/common/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_basic_cc_library", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_basic_cc_library( diff --git a/include/envoy/common/crypto/BUILD b/include/envoy/common/crypto/BUILD index 80d0fbb3971c..db3e738b80ff 100644 --- a/include/envoy/common/crypto/BUILD +++ b/include/envoy/common/crypto/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/compression/compressor/BUILD b/include/envoy/compression/compressor/BUILD index f9e90c9ec612..6632229aaed4 100644 --- a/include/envoy/compression/compressor/BUILD +++ b/include/envoy/compression/compressor/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/compression/decompressor/BUILD b/include/envoy/compression/decompressor/BUILD index 60a8e9cb7eeb..156d81d52356 100644 --- a/include/envoy/compression/decompressor/BUILD +++ b/include/envoy/compression/decompressor/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/config/BUILD b/include/envoy/config/BUILD index 50fca3a73007..991ddee5d3b5 100644 --- a/include/envoy/config/BUILD +++ b/include/envoy/config/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/event/BUILD b/include/envoy/event/BUILD index 05ea911bf8cc..d24846f32871 100644 --- a/include/envoy/event/BUILD +++ b/include/envoy/event/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/filesystem/BUILD b/include/envoy/filesystem/BUILD index e740d2ee25e4..6a95240457a9 100644 --- a/include/envoy/filesystem/BUILD +++ b/include/envoy/filesystem/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/formatter/BUILD b/include/envoy/formatter/BUILD index a39fd0a2d63f..df87c4cbac10 100644 --- a/include/envoy/formatter/BUILD +++ b/include/envoy/formatter/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/grpc/BUILD b/include/envoy/grpc/BUILD index a2beb3e61e7e..07d87ce33d19 100644 --- a/include/envoy/grpc/BUILD +++ b/include/envoy/grpc/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/http/BUILD b/include/envoy/http/BUILD index d1839dce3bf4..7ffc41f6372d 100644 --- a/include/envoy/http/BUILD +++ b/include/envoy/http/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/init/BUILD b/include/envoy/init/BUILD index 2229d7c7a12e..4bbc0d18f682 100644 --- a/include/envoy/init/BUILD +++ b/include/envoy/init/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/json/BUILD b/include/envoy/json/BUILD index 89c21942185a..4bbab2712a14 100644 --- a/include/envoy/json/BUILD +++ b/include/envoy/json/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/local_info/BUILD b/include/envoy/local_info/BUILD index 52372ccf334f..749ad670563b 100644 --- a/include/envoy/local_info/BUILD +++ b/include/envoy/local_info/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/network/BUILD b/include/envoy/network/BUILD index 233a5a55566b..977f8e7d4067 100644 --- a/include/envoy/network/BUILD +++ b/include/envoy/network/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/protobuf/BUILD b/include/envoy/protobuf/BUILD index c23eccce45ce..6510c566d103 100644 --- a/include/envoy/protobuf/BUILD +++ b/include/envoy/protobuf/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/ratelimit/BUILD b/include/envoy/ratelimit/BUILD index 38b7e7bf4f0a..d726ae9f54ed 100644 --- a/include/envoy/ratelimit/BUILD +++ b/include/envoy/ratelimit/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/registry/BUILD b/include/envoy/registry/BUILD index 7e2c9e38fd67..de34bccd492f 100644 --- a/include/envoy/registry/BUILD +++ b/include/envoy/registry/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/router/BUILD b/include/envoy/router/BUILD index 44aee699e338..80afd99d4abf 100644 --- a/include/envoy/router/BUILD +++ b/include/envoy/router/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/runtime/BUILD b/include/envoy/runtime/BUILD index 5118a04457c8..eaed57026a42 100644 --- a/include/envoy/runtime/BUILD +++ b/include/envoy/runtime/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/secret/BUILD b/include/envoy/secret/BUILD index 5f16335ecba3..219884c19e81 100644 --- a/include/envoy/secret/BUILD +++ b/include/envoy/secret/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/server/BUILD b/include/envoy/server/BUILD index 0b6b538b40b1..2388482f251c 100644 --- a/include/envoy/server/BUILD +++ b/include/envoy/server/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/singleton/BUILD b/include/envoy/singleton/BUILD index f47887a06244..a0eb2536c45e 100644 --- a/include/envoy/singleton/BUILD +++ b/include/envoy/singleton/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/ssl/BUILD b/include/envoy/ssl/BUILD index fb14af1a211c..b8e7d530174f 100644 --- a/include/envoy/ssl/BUILD +++ b/include/envoy/ssl/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/ssl/private_key/BUILD b/include/envoy/ssl/private_key/BUILD index bf8a908421df..51ecf0198ec2 100644 --- a/include/envoy/ssl/private_key/BUILD +++ b/include/envoy/ssl/private_key/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/stats/BUILD b/include/envoy/stats/BUILD index 4a3a6948aad5..c810ac7ad30c 100644 --- a/include/envoy/stats/BUILD +++ b/include/envoy/stats/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/stream_info/BUILD b/include/envoy/stream_info/BUILD index 63fa4b47ba5a..e491ce423332 100644 --- a/include/envoy/stream_info/BUILD +++ b/include/envoy/stream_info/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/tcp/BUILD b/include/envoy/tcp/BUILD index 991ccbd75e13..bbf990581003 100644 --- a/include/envoy/tcp/BUILD +++ b/include/envoy/tcp/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/thread/BUILD b/include/envoy/thread/BUILD index ef8f2450a237..d23937766850 100644 --- a/include/envoy/thread/BUILD +++ b/include/envoy/thread/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/thread_local/BUILD b/include/envoy/thread_local/BUILD index d5fbfb396718..3b23de4e0175 100644 --- a/include/envoy/thread_local/BUILD +++ b/include/envoy/thread_local/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/tracing/BUILD b/include/envoy/tracing/BUILD index 1a6e82e01880..bc50ea3769fc 100644 --- a/include/envoy/tracing/BUILD +++ b/include/envoy/tracing/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/include/envoy/upstream/BUILD b/include/envoy/upstream/BUILD index c6fe37d45beb..d31ba0fa6d97 100644 --- a/include/envoy/upstream/BUILD +++ b/include/envoy/upstream/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/restarter/BUILD b/restarter/BUILD index af4b8c78558d..811a10b6d098 100644 --- a/restarter/BUILD +++ b/restarter/BUILD @@ -1,10 +1,10 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() exports_files([ diff --git a/source/common/access_log/BUILD b/source/common/access_log/BUILD index faf3c2420a00..08408b26a9cf 100644 --- a/source/common/access_log/BUILD +++ b/source/common/access_log/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/api/BUILD b/source/common/api/BUILD index 25c142ce784a..1fd681a0cc7d 100644 --- a/source/common/api/BUILD +++ b/source/common/api/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", @@ -7,6 +5,8 @@ load( "envoy_select_hot_restart", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/buffer/BUILD b/source/common/buffer/BUILD index 02371e3c63d6..171aa8a08987 100644 --- a/source/common/buffer/BUILD +++ b/source/common/buffer/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/chromium_url/BUILD b/source/common/chromium_url/BUILD index 9b07e76b0013..2d4acb348765 100644 --- a/source/common/chromium_url/BUILD +++ b/source/common/chromium_url/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/common/BUILD b/source/common/common/BUILD index 248471b5ea90..5d473a9776f2 100644 --- a/source/common/common/BUILD +++ b/source/common/common/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_basic_cc_library", @@ -12,6 +10,8 @@ load( "envoy_select_boringssl", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/config/BUILD b/source/common/config/BUILD index 12042dee180a..19a26940fbb8 100644 --- a/source/common/config/BUILD +++ b/source/common/config/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/crypto/BUILD b/source/common/crypto/BUILD index d7431432f6eb..e47c843fe72a 100644 --- a/source/common/crypto/BUILD +++ b/source/common/crypto/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/event/BUILD b/source/common/event/BUILD index 33fd947b8d77..78184213018b 100644 --- a/source/common/event/BUILD +++ b/source/common/event/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/filesystem/BUILD b/source/common/filesystem/BUILD index 7aa299d43d74..12899b58f981 100644 --- a/source/common/filesystem/BUILD +++ b/source/common/filesystem/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", @@ -9,6 +7,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/formatter/BUILD b/source/common/formatter/BUILD index 0c0df68ecd7a..d4eb45228abf 100644 --- a/source/common/formatter/BUILD +++ b/source/common/formatter/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/grpc/BUILD b/source/common/grpc/BUILD index 8534b6f0c67c..ce22cd37046b 100644 --- a/source/common/grpc/BUILD +++ b/source/common/grpc/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", @@ -8,6 +6,8 @@ load( "envoy_select_google_grpc", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/html/BUILD b/source/common/html/BUILD index 42c5fc06a7ef..fc2b6c391ad1 100644 --- a/source/common/html/BUILD +++ b/source/common/html/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/http/BUILD b/source/common/http/BUILD index 7b7b7e536adf..eb524eb4077e 100644 --- a/source/common/http/BUILD +++ b/source/common/http/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/http/http1/BUILD b/source/common/http/http1/BUILD index be5088d41966..47499a86bb0c 100644 --- a/source/common/http/http1/BUILD +++ b/source/common/http/http1/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/http/http2/BUILD b/source/common/http/http2/BUILD index 45835a318267..a27a6d85282d 100644 --- a/source/common/http/http2/BUILD +++ b/source/common/http/http2/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/http/http3/BUILD b/source/common/http/http3/BUILD index cadca40d0d25..43ba5729097c 100644 --- a/source/common/http/http3/BUILD +++ b/source/common/http/http3/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/init/BUILD b/source/common/init/BUILD index 6fef3006865b..5b75ca4a8285 100644 --- a/source/common/init/BUILD +++ b/source/common/init/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/json/BUILD b/source/common/json/BUILD index afcfec49af76..edda394d6949 100644 --- a/source/common/json/BUILD +++ b/source/common/json/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/local_info/BUILD b/source/common/local_info/BUILD index 4cfb87f03834..ae6482c600ad 100644 --- a/source/common/local_info/BUILD +++ b/source/common/local_info/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/local_reply/BUILD b/source/common/local_reply/BUILD index 87a2a93dd9d1..6de00f364e0c 100644 --- a/source/common/local_reply/BUILD +++ b/source/common/local_reply/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/memory/BUILD b/source/common/memory/BUILD index 1501b81a6b01..45cc04041baa 100644 --- a/source/common/memory/BUILD +++ b/source/common/memory/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/network/BUILD b/source/common/network/BUILD index 66db07d3680f..54f82d48ef1a 100644 --- a/source/common/network/BUILD +++ b/source/common/network/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/profiler/BUILD b/source/common/profiler/BUILD index c853cfea30c3..192f9712568a 100644 --- a/source/common/profiler/BUILD +++ b/source/common/profiler/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/protobuf/BUILD b/source/common/protobuf/BUILD index de33b5516828..20ead1f753c6 100644 --- a/source/common/protobuf/BUILD +++ b/source/common/protobuf/BUILD @@ -1,5 +1,4 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") load( "//bazel:envoy_build_system.bzl", @@ -7,6 +6,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() proto_library( diff --git a/source/common/router/BUILD b/source/common/router/BUILD index d69cad792900..610cb0f10d75 100644 --- a/source/common/router/BUILD +++ b/source/common/router/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/runtime/BUILD b/source/common/runtime/BUILD index ddeb069e3e5a..4e76ab315760 100644 --- a/source/common/runtime/BUILD +++ b/source/common/runtime/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/secret/BUILD b/source/common/secret/BUILD index 719c3e884af9..f486c2f7ce8e 100644 --- a/source/common/secret/BUILD +++ b/source/common/secret/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/shared_pool/BUILD b/source/common/shared_pool/BUILD index 447ad6538b56..1d55c9ec99a0 100644 --- a/source/common/shared_pool/BUILD +++ b/source/common/shared_pool/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/signal/BUILD b/source/common/signal/BUILD index 17dec6c9be55..6dc082eda079 100644 --- a/source/common/signal/BUILD +++ b/source/common/signal/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/singleton/BUILD b/source/common/singleton/BUILD index 1b52b93501a1..06d67beae1b5 100644 --- a/source/common/singleton/BUILD +++ b/source/common/singleton/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/ssl/BUILD b/source/common/ssl/BUILD index 3f46b11b2471..0be754cc4809 100644 --- a/source/common/ssl/BUILD +++ b/source/common/ssl/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/stats/BUILD b/source/common/stats/BUILD index 256074df9cbf..37d4cb76df4f 100644 --- a/source/common/stats/BUILD +++ b/source/common/stats/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/stream_info/BUILD b/source/common/stream_info/BUILD index 9abb095ed978..d2962e67ef15 100644 --- a/source/common/stream_info/BUILD +++ b/source/common/stream_info/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/tcp/BUILD b/source/common/tcp/BUILD index a9e3b948a1b2..f176de79ed55 100644 --- a/source/common/tcp/BUILD +++ b/source/common/tcp/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/tcp_proxy/BUILD b/source/common/tcp_proxy/BUILD index fc81b6fdb625..328aca0a23e9 100644 --- a/source/common/tcp_proxy/BUILD +++ b/source/common/tcp_proxy/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/thread_local/BUILD b/source/common/thread_local/BUILD index 82b0d913f0e4..3892298e00d6 100644 --- a/source/common/thread_local/BUILD +++ b/source/common/thread_local/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/tracing/BUILD b/source/common/tracing/BUILD index a99899fc312e..ef703c964a90 100644 --- a/source/common/tracing/BUILD +++ b/source/common/tracing/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/common/upstream/BUILD b/source/common/upstream/BUILD index f0634fd33bc4..bdbe7c309f6d 100644 --- a/source/common/upstream/BUILD +++ b/source/common/upstream/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/exe/BUILD b/source/exe/BUILD index 867605c7663d..0bee6f5858ef 100644 --- a/source/exe/BUILD +++ b/source/exe/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_binary", @@ -12,6 +10,8 @@ load( load("//source/extensions:all_extensions.bzl", "envoy_all_extensions") load("//bazel:repositories.bzl", "PPC_SKIP_TARGETS", "WINDOWS_SKIP_TARGETS") +licenses(["notice"]) # Apache 2 + envoy_package() alias( diff --git a/source/extensions/access_loggers/BUILD b/source/extensions/access_loggers/BUILD index 6156949edef6..06456dbbcb5e 100644 --- a/source/extensions/access_loggers/BUILD +++ b/source/extensions/access_loggers/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/access_loggers/common/BUILD b/source/extensions/access_loggers/common/BUILD index daa8a198e578..a4cf5294cf81 100644 --- a/source/extensions/access_loggers/common/BUILD +++ b/source/extensions/access_loggers/common/BUILD @@ -1,13 +1,13 @@ -licenses(["notice"]) # Apache 2 - -# Base class for implementations of AccessLog::Instance. - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Base class for implementations of AccessLog::Instance. + envoy_package() envoy_cc_library( diff --git a/source/extensions/access_loggers/file/BUILD b/source/extensions/access_loggers/file/BUILD index 015920030af9..6e86f2e0a490 100644 --- a/source/extensions/access_loggers/file/BUILD +++ b/source/extensions/access_loggers/file/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Access log implementation that writes to a file. -# Public docs: docs/root/configuration/access_log.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Access log implementation that writes to a file. +# Public docs: docs/root/configuration/access_log.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/access_loggers/grpc/BUILD b/source/extensions/access_loggers/grpc/BUILD index 3cf198c4d0fc..e92a44b24d6d 100644 --- a/source/extensions/access_loggers/grpc/BUILD +++ b/source/extensions/access_loggers/grpc/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Access log implementation that writes to a gRPC service. -# Public docs: TODO(rodaine): Docs needed. - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Access log implementation that writes to a gRPC service. +# Public docs: TODO(rodaine): Docs needed. + envoy_package() envoy_cc_library( diff --git a/source/extensions/clusters/BUILD b/source/extensions/clusters/BUILD index 7a4780afbdab..ee5bcf6bc186 100644 --- a/source/extensions/clusters/BUILD +++ b/source/extensions/clusters/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/clusters/aggregate/BUILD b/source/extensions/clusters/aggregate/BUILD index 8dab07320fdf..d6c7d4d1a515 100644 --- a/source/extensions/clusters/aggregate/BUILD +++ b/source/extensions/clusters/aggregate/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_extension( diff --git a/source/extensions/clusters/dynamic_forward_proxy/BUILD b/source/extensions/clusters/dynamic_forward_proxy/BUILD index d063252df167..744f1e1bfca8 100644 --- a/source/extensions/clusters/dynamic_forward_proxy/BUILD +++ b/source/extensions/clusters/dynamic_forward_proxy/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_extension( diff --git a/source/extensions/clusters/redis/BUILD b/source/extensions/clusters/redis/BUILD index 3519f9350629..3edf4864852c 100644 --- a/source/extensions/clusters/redis/BUILD +++ b/source/extensions/clusters/redis/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/common/BUILD b/source/extensions/common/BUILD index 035e287aa3c9..54a5bcddfc7f 100644 --- a/source/extensions/common/BUILD +++ b/source/extensions/common/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/common/aws/BUILD b/source/extensions/common/aws/BUILD index 876b88065c74..4d610a59545f 100644 --- a/source/extensions/common/aws/BUILD +++ b/source/extensions/common/aws/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/common/crypto/BUILD b/source/extensions/common/crypto/BUILD index 04c698e08480..836c8320a523 100644 --- a/source/extensions/common/crypto/BUILD +++ b/source/extensions/common/crypto/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_extension( diff --git a/source/extensions/common/dynamic_forward_proxy/BUILD b/source/extensions/common/dynamic_forward_proxy/BUILD index 89f6d47aae98..b4dbdb57eaa2 100644 --- a/source/extensions/common/dynamic_forward_proxy/BUILD +++ b/source/extensions/common/dynamic_forward_proxy/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/common/proxy_protocol/BUILD b/source/extensions/common/proxy_protocol/BUILD index 7eb374f5a5bf..fb0d2f74c09f 100644 --- a/source/extensions/common/proxy_protocol/BUILD +++ b/source/extensions/common/proxy_protocol/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/common/redis/BUILD b/source/extensions/common/redis/BUILD index 7c51e3a80f72..1d50b1cfc6fc 100644 --- a/source/extensions/common/redis/BUILD +++ b/source/extensions/common/redis/BUILD @@ -1,15 +1,15 @@ -licenses(["notice"]) # Apache 2 - -# Redis proxy L4 network filter. Implements consistent hashing and observability for large redis -# clusters. -# Public docs: docs/root/configuration/network_filters/redis_proxy_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Redis proxy L4 network filter. Implements consistent hashing and observability for large redis +# clusters. +# Public docs: docs/root/configuration/network_filters/redis_proxy_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/common/tap/BUILD b/source/extensions/common/tap/BUILD index ec9acb716fa4..8795a34b9170 100644 --- a/source/extensions/common/tap/BUILD +++ b/source/extensions/common/tap/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/common/wasm/BUILD b/source/extensions/common/wasm/BUILD index 9333c679421f..c511d3806fe1 100644 --- a/source/extensions/common/wasm/BUILD +++ b/source/extensions/common/wasm/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/common/wasm/null/BUILD b/source/extensions/common/wasm/null/BUILD index 2bae8acd9f4f..0d9d49510412 100644 --- a/source/extensions/common/wasm/null/BUILD +++ b/source/extensions/common/wasm/null/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/common/wasm/v8/BUILD b/source/extensions/common/wasm/v8/BUILD index 04d0954d1b2c..0e4f86d97a66 100644 --- a/source/extensions/common/wasm/v8/BUILD +++ b/source/extensions/common/wasm/v8/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/compression/common/compressor/BUILD b/source/extensions/compression/common/compressor/BUILD index eb16810cc8b9..54843124ba79 100644 --- a/source/extensions/compression/common/compressor/BUILD +++ b/source/extensions/compression/common/compressor/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/compression/common/decompressor/BUILD b/source/extensions/compression/common/decompressor/BUILD index 3b3e96b3e980..27208bee530a 100644 --- a/source/extensions/compression/common/decompressor/BUILD +++ b/source/extensions/compression/common/decompressor/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/compression/gzip/common/BUILD b/source/extensions/compression/gzip/common/BUILD index b2393354384f..8ec29af79ddb 100644 --- a/source/extensions/compression/gzip/common/BUILD +++ b/source/extensions/compression/gzip/common/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/compression/gzip/compressor/BUILD b/source/extensions/compression/gzip/compressor/BUILD index 20df9161513d..3f37d2524356 100644 --- a/source/extensions/compression/gzip/compressor/BUILD +++ b/source/extensions/compression/gzip/compressor/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/compression/gzip/decompressor/BUILD b/source/extensions/compression/gzip/decompressor/BUILD index 220c40f5c5cc..f31199e80811 100644 --- a/source/extensions/compression/gzip/decompressor/BUILD +++ b/source/extensions/compression/gzip/decompressor/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/common/expr/BUILD b/source/extensions/filters/common/expr/BUILD index 316c36b05b19..d9abedc88404 100644 --- a/source/extensions/filters/common/expr/BUILD +++ b/source/extensions/filters/common/expr/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/common/ext_authz/BUILD b/source/extensions/filters/common/ext_authz/BUILD index 58ed8316353e..66db5c593ff4 100644 --- a/source/extensions/filters/common/ext_authz/BUILD +++ b/source/extensions/filters/common/ext_authz/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/common/fault/BUILD b/source/extensions/filters/common/fault/BUILD index e70a66db64eb..d64605085fc4 100644 --- a/source/extensions/filters/common/fault/BUILD +++ b/source/extensions/filters/common/fault/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/common/lua/BUILD b/source/extensions/filters/common/lua/BUILD index d1f515945c6e..b36d7b7414c7 100644 --- a/source/extensions/filters/common/lua/BUILD +++ b/source/extensions/filters/common/lua/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", @@ -8,6 +6,8 @@ load( load("//bazel:envoy_internal.bzl", "envoy_external_dep_path") load("@bazel_skylib//rules:common_settings.bzl", "bool_flag") +licenses(["notice"]) # Apache 2 + envoy_package() bool_flag( diff --git a/source/extensions/filters/common/original_src/BUILD b/source/extensions/filters/common/original_src/BUILD index 7cf8fd5926d2..76662376ee0c 100644 --- a/source/extensions/filters/common/original_src/BUILD +++ b/source/extensions/filters/common/original_src/BUILD @@ -1,13 +1,13 @@ -licenses(["notice"]) # Apache 2 - -# Helprs for filters for mirroring the downstream remote address on the upstream's source. - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Helprs for filters for mirroring the downstream remote address on the upstream's source. + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/common/ratelimit/BUILD b/source/extensions/filters/common/ratelimit/BUILD index bd26ccb6b8b0..726bdf338f9a 100644 --- a/source/extensions/filters/common/ratelimit/BUILD +++ b/source/extensions/filters/common/ratelimit/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/common/rbac/BUILD b/source/extensions/filters/common/rbac/BUILD index 2784d91ffb11..9a9bbc105749 100644 --- a/source/extensions/filters/common/rbac/BUILD +++ b/source/extensions/filters/common/rbac/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/BUILD b/source/extensions/filters/http/BUILD index 7a4780afbdab..ee5bcf6bc186 100644 --- a/source/extensions/filters/http/BUILD +++ b/source/extensions/filters/http/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/adaptive_concurrency/BUILD b/source/extensions/filters/http/adaptive_concurrency/BUILD index 1cff74436f07..c6a7a2d4e95f 100644 --- a/source/extensions/filters/http/adaptive_concurrency/BUILD +++ b/source/extensions/filters/http/adaptive_concurrency/BUILD @@ -1,9 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# HTTP L7 filter that dynamically adjusts the number of allowed concurrent -# requests based on sampled latencies. -# Public docs: docs/root/configuration/http_filters/adaptive_concurrency_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -11,6 +5,12 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# HTTP L7 filter that dynamically adjusts the number of allowed concurrent +# requests based on sampled latencies. +# Public docs: docs/root/configuration/http_filters/adaptive_concurrency_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/adaptive_concurrency/controller/BUILD b/source/extensions/filters/http/adaptive_concurrency/controller/BUILD index b5e828f9a3b3..768d34438936 100644 --- a/source/extensions/filters/http/adaptive_concurrency/controller/BUILD +++ b/source/extensions/filters/http/adaptive_concurrency/controller/BUILD @@ -1,15 +1,15 @@ -licenses(["notice"]) # Apache 2 - -# HTTP L7 filter that dynamically adjusts the number of allowed concurrent -# requests based on sampled latencies. -# Public docs: TODO (tonya11en) - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# HTTP L7 filter that dynamically adjusts the number of allowed concurrent +# requests based on sampled latencies. +# Public docs: TODO (tonya11en) + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/aws_lambda/BUILD b/source/extensions/filters/http/aws_lambda/BUILD index a3c73926c517..1e3d6006293a 100644 --- a/source/extensions/filters/http/aws_lambda/BUILD +++ b/source/extensions/filters/http/aws_lambda/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# L7 HTTP AWS Lambda filter -# Public docs: docs/root/configuration/http_filters/aws_lambda_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -11,6 +6,11 @@ load( "envoy_proto_library", ) +licenses(["notice"]) # Apache 2 + +# L7 HTTP AWS Lambda filter +# Public docs: docs/root/configuration/http_filters/aws_lambda_filter.rst + envoy_package() envoy_proto_library( diff --git a/source/extensions/filters/http/aws_request_signing/BUILD b/source/extensions/filters/http/aws_request_signing/BUILD index c723fb932b08..a83efef61e98 100644 --- a/source/extensions/filters/http/aws_request_signing/BUILD +++ b/source/extensions/filters/http/aws_request_signing/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# L7 HTTP AWS request signing filter -# Public docs: docs/root/configuration/http_filters/aws_request_signing_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# L7 HTTP AWS request signing filter +# Public docs: docs/root/configuration/http_filters/aws_request_signing_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/buffer/BUILD b/source/extensions/filters/http/buffer/BUILD index e7629854f46b..eeb4a403931e 100644 --- a/source/extensions/filters/http/buffer/BUILD +++ b/source/extensions/filters/http/buffer/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Request buffering and timeout L7 HTTP filter -# Public docs: docs/root/configuration/http_filters/buffer_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Request buffering and timeout L7 HTTP filter +# Public docs: docs/root/configuration/http_filters/buffer_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/cache/BUILD b/source/extensions/filters/http/cache/BUILD index 03c1c4932fef..63327875e739 100644 --- a/source/extensions/filters/http/cache/BUILD +++ b/source/extensions/filters/http/cache/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -## Pluggable HTTP cache filter - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +6,10 @@ load( "envoy_proto_library", ) +licenses(["notice"]) # Apache 2 + +## Pluggable HTTP cache filter + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/cache/simple_http_cache/BUILD b/source/extensions/filters/http/cache/simple_http_cache/BUILD index 6f569711d5dc..b38c273b2601 100644 --- a/source/extensions/filters/http/cache/simple_http_cache/BUILD +++ b/source/extensions/filters/http/cache/simple_http_cache/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -## WIP: Simple in-memory cache storage plugin. Not ready for deployment. - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_proto_library", ) +licenses(["notice"]) # Apache 2 + +## WIP: Simple in-memory cache storage plugin. Not ready for deployment. + envoy_package() envoy_cc_extension( diff --git a/source/extensions/filters/http/common/BUILD b/source/extensions/filters/http/common/BUILD index b5d2b2a030e3..7a3ccda3d2c1 100644 --- a/source/extensions/filters/http/common/BUILD +++ b/source/extensions/filters/http/common/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/common/compressor/BUILD b/source/extensions/filters/http/common/compressor/BUILD index 7058ab2fc58b..56468881c8f2 100644 --- a/source/extensions/filters/http/common/compressor/BUILD +++ b/source/extensions/filters/http/common/compressor/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() # TODO(rojkov): move this library to source/extensions/filters/http/compressor/. diff --git a/source/extensions/filters/http/compressor/BUILD b/source/extensions/filters/http/compressor/BUILD index 188ee5e38be0..ea1d38801a5e 100644 --- a/source/extensions/filters/http/compressor/BUILD +++ b/source/extensions/filters/http/compressor/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# HTTP L7 filter that performs compression with configurable compression libraries -# Public docs: docs/root/configuration/http_filters/compressor_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# HTTP L7 filter that performs compression with configurable compression libraries +# Public docs: docs/root/configuration/http_filters/compressor_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/cors/BUILD b/source/extensions/filters/http/cors/BUILD index 9004a1c984fa..0685c0e41f27 100644 --- a/source/extensions/filters/http/cors/BUILD +++ b/source/extensions/filters/http/cors/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# L7 HTTP filter which implements CORS processing (https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) -# Public docs: docs/root/configuration/http_filters/cors_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# L7 HTTP filter which implements CORS processing (https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) +# Public docs: docs/root/configuration/http_filters/cors_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/csrf/BUILD b/source/extensions/filters/http/csrf/BUILD index cd2315773e6e..a9361502dd10 100644 --- a/source/extensions/filters/http/csrf/BUILD +++ b/source/extensions/filters/http/csrf/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# L7 HTTP filter which implements CSRF processing (https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)) -# Public docs: docs/root/configuration/http_filters/csrf_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# L7 HTTP filter which implements CSRF processing (https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)) +# Public docs: docs/root/configuration/http_filters/csrf_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/decompressor/BUILD b/source/extensions/filters/http/decompressor/BUILD index 3e8faf194250..b4665ca09b7b 100644 --- a/source/extensions/filters/http/decompressor/BUILD +++ b/source/extensions/filters/http/decompressor/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# HTTP L7 filter that performs decompression with configurable decompression libraries -# Public docs: docs/root/configuration/http_filters/decompressor_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# HTTP L7 filter that performs decompression with configurable decompression libraries +# Public docs: docs/root/configuration/http_filters/decompressor_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/dynamic_forward_proxy/BUILD b/source/extensions/filters/http/dynamic_forward_proxy/BUILD index dc85075eb30d..3e63ff181921 100644 --- a/source/extensions/filters/http/dynamic_forward_proxy/BUILD +++ b/source/extensions/filters/http/dynamic_forward_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/dynamo/BUILD b/source/extensions/filters/http/dynamo/BUILD index 79296db8818f..ad5f2fc3b97e 100644 --- a/source/extensions/filters/http/dynamo/BUILD +++ b/source/extensions/filters/http/dynamo/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# AWS DynamoDB L7 HTTP filter (observability): https://aws.amazon.com/dynamodb/ -# Public docs: docs/root/configuration/http_filters/dynamodb_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# AWS DynamoDB L7 HTTP filter (observability): https://aws.amazon.com/dynamodb/ +# Public docs: docs/root/configuration/http_filters/dynamodb_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/ext_authz/BUILD b/source/extensions/filters/http/ext_authz/BUILD index 1af4bcf28687..559363edcf7b 100644 --- a/source/extensions/filters/http/ext_authz/BUILD +++ b/source/extensions/filters/http/ext_authz/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# External authorization L7 HTTP filter -# Public docs: TODO(saumoh): Docs needed in docs/root/configuration/http_filters - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# External authorization L7 HTTP filter +# Public docs: TODO(saumoh): Docs needed in docs/root/configuration/http_filters + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/fault/BUILD b/source/extensions/filters/http/fault/BUILD index 749e04b67a4c..726cda5785d0 100644 --- a/source/extensions/filters/http/fault/BUILD +++ b/source/extensions/filters/http/fault/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# HTTP L7 filter that injects faults into the request flow -# Public docs: docs/root/configuration/http_filters/fault_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# HTTP L7 filter that injects faults into the request flow +# Public docs: docs/root/configuration/http_filters/fault_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/grpc_http1_bridge/BUILD b/source/extensions/filters/http/grpc_http1_bridge/BUILD index 379e0d75f1b6..486904e2f8a5 100644 --- a/source/extensions/filters/http/grpc_http1_bridge/BUILD +++ b/source/extensions/filters/http/grpc_http1_bridge/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# L7 HTTP filter that bridges HTTP/1.1 unary "gRPC" to compliant HTTP/2 gRPC. -# Public docs: docs/root/configuration/http_filters/grpc_http1_bridge_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# L7 HTTP filter that bridges HTTP/1.1 unary "gRPC" to compliant HTTP/2 gRPC. +# Public docs: docs/root/configuration/http_filters/grpc_http1_bridge_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/grpc_http1_reverse_bridge/BUILD b/source/extensions/filters/http/grpc_http1_reverse_bridge/BUILD index d44f111be849..1a80fefdb45c 100644 --- a/source/extensions/filters/http/grpc_http1_reverse_bridge/BUILD +++ b/source/extensions/filters/http/grpc_http1_reverse_bridge/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/grpc_json_transcoder/BUILD b/source/extensions/filters/http/grpc_json_transcoder/BUILD index ca2ce1749d40..3b7ab0a09d22 100644 --- a/source/extensions/filters/http/grpc_json_transcoder/BUILD +++ b/source/extensions/filters/http/grpc_json_transcoder/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# L7 HTTP filter that implements binary gRPC to JSON transcoding -# Public docs: docs/root/configuration/http_filters/grpc_json_transcoder_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# L7 HTTP filter that implements binary gRPC to JSON transcoding +# Public docs: docs/root/configuration/http_filters/grpc_json_transcoder_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/grpc_stats/BUILD b/source/extensions/filters/http/grpc_stats/BUILD index 171e49afd320..62bc49e8be01 100644 --- a/source/extensions/filters/http/grpc_stats/BUILD +++ b/source/extensions/filters/http/grpc_stats/BUILD @@ -1,13 +1,13 @@ -licenses(["notice"]) # Apache 2 - -# L7 HTTP filter that implements gRPC telemetry - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# L7 HTTP filter that implements gRPC telemetry + envoy_package() envoy_cc_extension( diff --git a/source/extensions/filters/http/grpc_web/BUILD b/source/extensions/filters/http/grpc_web/BUILD index e1509bde3c50..1f6910590907 100644 --- a/source/extensions/filters/http/grpc_web/BUILD +++ b/source/extensions/filters/http/grpc_web/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# L7 HTTP filter that implements the grpc-web protocol (https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-WEB.md) -# Public docs: docs/root/configuration/http_filters/grpc_web_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# L7 HTTP filter that implements the grpc-web protocol (https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-WEB.md) +# Public docs: docs/root/configuration/http_filters/grpc_web_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/gzip/BUILD b/source/extensions/filters/http/gzip/BUILD index b27fe1fef620..3844addc83b6 100644 --- a/source/extensions/filters/http/gzip/BUILD +++ b/source/extensions/filters/http/gzip/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# HTTP L7 filter that performs gzip compression -# Public docs: docs/root/configuration/http_filters/gzip_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# HTTP L7 filter that performs gzip compression +# Public docs: docs/root/configuration/http_filters/gzip_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/header_to_metadata/BUILD b/source/extensions/filters/http/header_to_metadata/BUILD index d22a182a2dfd..e0232d4d8d1c 100644 --- a/source/extensions/filters/http/header_to_metadata/BUILD +++ b/source/extensions/filters/http/header_to_metadata/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# HTTP L7 filter that transforms request data into dynamic metadata -# Public docs: docs/root/configuration/http_filters/header_to_metadata_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# HTTP L7 filter that transforms request data into dynamic metadata +# Public docs: docs/root/configuration/http_filters/header_to_metadata_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/health_check/BUILD b/source/extensions/filters/http/health_check/BUILD index d26759688ee8..f0841d388b48 100644 --- a/source/extensions/filters/http/health_check/BUILD +++ b/source/extensions/filters/http/health_check/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# L7 HTTP filter that implements health check responses -# Public docs: docs/root/configuration/http_filters/health_check_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# L7 HTTP filter that implements health check responses +# Public docs: docs/root/configuration/http_filters/health_check_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/ip_tagging/BUILD b/source/extensions/filters/http/ip_tagging/BUILD index a28d3cf649ed..cbcf98b1d516 100644 --- a/source/extensions/filters/http/ip_tagging/BUILD +++ b/source/extensions/filters/http/ip_tagging/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# HTTP L7 filter that writes an IP tagging header based on IP trie data -# Public docs: docs/root/configuration/http_filters/ip_tagging_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# HTTP L7 filter that writes an IP tagging header based on IP trie data +# Public docs: docs/root/configuration/http_filters/ip_tagging_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/jwt_authn/BUILD b/source/extensions/filters/http/jwt_authn/BUILD index b64922a9c442..a2967b990132 100644 --- a/source/extensions/filters/http/jwt_authn/BUILD +++ b/source/extensions/filters/http/jwt_authn/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/lua/BUILD b/source/extensions/filters/http/lua/BUILD index d7560f5207b7..9df156c1eb32 100644 --- a/source/extensions/filters/http/lua/BUILD +++ b/source/extensions/filters/http/lua/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Lua scripting L7 HTTP filter (https://www.lua.org/, http://luajit.org/) -# Public docs: docs/root/configuration/http_filters/lua_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Lua scripting L7 HTTP filter (https://www.lua.org/, http://luajit.org/) +# Public docs: docs/root/configuration/http_filters/lua_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/on_demand/BUILD b/source/extensions/filters/http/on_demand/BUILD index 2332afdae292..3f4ef02c1dba 100644 --- a/source/extensions/filters/http/on_demand/BUILD +++ b/source/extensions/filters/http/on_demand/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# On-demand RDS update HTTP filter - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# On-demand RDS update HTTP filter + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/original_src/BUILD b/source/extensions/filters/http/original_src/BUILD index b95bf621118b..eff7f4cf9679 100644 --- a/source/extensions/filters/http/original_src/BUILD +++ b/source/extensions/filters/http/original_src/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# A filter for mirroring the downstream remote address on the upstream's source. - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# A filter for mirroring the downstream remote address on the upstream's source. + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/ratelimit/BUILD b/source/extensions/filters/http/ratelimit/BUILD index af3b29e07908..4a8c7a8c35d5 100644 --- a/source/extensions/filters/http/ratelimit/BUILD +++ b/source/extensions/filters/http/ratelimit/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Ratelimit L7 HTTP filter -# Public docs: docs/root/configuration/http_filters/rate_limit_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Ratelimit L7 HTTP filter +# Public docs: docs/root/configuration/http_filters/rate_limit_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/rbac/BUILD b/source/extensions/filters/http/rbac/BUILD index 77472b169e84..9554a910a16c 100644 --- a/source/extensions/filters/http/rbac/BUILD +++ b/source/extensions/filters/http/rbac/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_extension( diff --git a/source/extensions/filters/http/router/BUILD b/source/extensions/filters/http/router/BUILD index 98ce18396f5e..ab7487d00b6a 100644 --- a/source/extensions/filters/http/router/BUILD +++ b/source/extensions/filters/http/router/BUILD @@ -1,14 +1,14 @@ -licenses(["notice"]) # Apache 2 - -# HTTP L7 filter responsible for routing to upstream connection pools -# Public docs: docs/root/configuration/http_filters/router_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# HTTP L7 filter responsible for routing to upstream connection pools +# Public docs: docs/root/configuration/http_filters/router_filter.rst + envoy_package() envoy_cc_extension( diff --git a/source/extensions/filters/http/squash/BUILD b/source/extensions/filters/http/squash/BUILD index 0047bdf3f7de..8579d7a2860a 100644 --- a/source/extensions/filters/http/squash/BUILD +++ b/source/extensions/filters/http/squash/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# L7 HTTP filter that implements the Squash microservice debugger -# Public docs: docs/root/configuration/http_filters/squash_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# L7 HTTP filter that implements the Squash microservice debugger +# Public docs: docs/root/configuration/http_filters/squash_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/http/tap/BUILD b/source/extensions/filters/http/tap/BUILD index d388912dfe56..62a8d2f36f5a 100644 --- a/source/extensions/filters/http/tap/BUILD +++ b/source/extensions/filters/http/tap/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# L7 HTTP Tap filter -# Public docs: docs/root/configuration/http_filters/tap_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# L7 HTTP Tap filter +# Public docs: docs/root/configuration/http_filters/tap_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/listener/BUILD b/source/extensions/filters/listener/BUILD index 6156949edef6..06456dbbcb5e 100644 --- a/source/extensions/filters/listener/BUILD +++ b/source/extensions/filters/listener/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/listener/http_inspector/BUILD b/source/extensions/filters/listener/http_inspector/BUILD index 8df52851b824..70d097484943 100644 --- a/source/extensions/filters/listener/http_inspector/BUILD +++ b/source/extensions/filters/listener/http_inspector/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# HTTP inspector filter for sniffing HTTP protocol and setting HTTP version to a FilterChain. - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# HTTP inspector filter for sniffing HTTP protocol and setting HTTP version to a FilterChain. + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/listener/original_dst/BUILD b/source/extensions/filters/listener/original_dst/BUILD index d21098d656e3..a940d212c987 100644 --- a/source/extensions/filters/listener/original_dst/BUILD +++ b/source/extensions/filters/listener/original_dst/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# ORIGINAL_DST iptables redirection listener filter -# Public docs: docs/root/configuration/listener_filters/original_dst_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# ORIGINAL_DST iptables redirection listener filter +# Public docs: docs/root/configuration/listener_filters/original_dst_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/listener/original_src/BUILD b/source/extensions/filters/listener/original_src/BUILD index 96fac9a17014..4bed07cc6619 100644 --- a/source/extensions/filters/listener/original_src/BUILD +++ b/source/extensions/filters/listener/original_src/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# A filter for mirroring the downstream remote address on the upstream's source. - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# A filter for mirroring the downstream remote address on the upstream's source. + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/listener/proxy_protocol/BUILD b/source/extensions/filters/listener/proxy_protocol/BUILD index f62e9940af1c..d4b87f1bfd5e 100644 --- a/source/extensions/filters/listener/proxy_protocol/BUILD +++ b/source/extensions/filters/listener/proxy_protocol/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Proxy protocol listener filter: https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Proxy protocol listener filter: https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/listener/tls_inspector/BUILD b/source/extensions/filters/listener/tls_inspector/BUILD index d400c3534e28..c751c53156a4 100644 --- a/source/extensions/filters/listener/tls_inspector/BUILD +++ b/source/extensions/filters/listener/tls_inspector/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# TLS inspector filter for examining various TLS parameters before routing to a FilterChain. -# Public docs: docs/root/configuration/listener_filters/tls_inspector.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# TLS inspector filter for examining various TLS parameters before routing to a FilterChain. +# Public docs: docs/root/configuration/listener_filters/tls_inspector.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/BUILD b/source/extensions/filters/network/BUILD index 7a4780afbdab..ee5bcf6bc186 100644 --- a/source/extensions/filters/network/BUILD +++ b/source/extensions/filters/network/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/client_ssl_auth/BUILD b/source/extensions/filters/network/client_ssl_auth/BUILD index d2f50785404d..2a120e030866 100644 --- a/source/extensions/filters/network/client_ssl_auth/BUILD +++ b/source/extensions/filters/network/client_ssl_auth/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Client SSL authorization L4 network filter -# Public docs: docs/root/configuration/network_filters/client_ssl_auth_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Client SSL authorization L4 network filter +# Public docs: docs/root/configuration/network_filters/client_ssl_auth_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/common/BUILD b/source/extensions/filters/network/common/BUILD index dcbf6142308e..4e70e2aa414d 100644 --- a/source/extensions/filters/network/common/BUILD +++ b/source/extensions/filters/network/common/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/common/redis/BUILD b/source/extensions/filters/network/common/redis/BUILD index d648832e0b1e..3b4dcedbb01e 100644 --- a/source/extensions/filters/network/common/redis/BUILD +++ b/source/extensions/filters/network/common/redis/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/direct_response/BUILD b/source/extensions/filters/network/direct_response/BUILD index e5037679e900..fe6244a5c19d 100644 --- a/source/extensions/filters/network/direct_response/BUILD +++ b/source/extensions/filters/network/direct_response/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Direct response L4 network filter. -# Public docs: docs/root/configuration/network_filters/direct_response_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Direct response L4 network filter. +# Public docs: docs/root/configuration/network_filters/direct_response_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/dubbo_proxy/BUILD b/source/extensions/filters/network/dubbo_proxy/BUILD index cb61a5bfc989..6b2affdd7d72 100644 --- a/source/extensions/filters/network/dubbo_proxy/BUILD +++ b/source/extensions/filters/network/dubbo_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/dubbo_proxy/filters/BUILD b/source/extensions/filters/network/dubbo_proxy/filters/BUILD index 19f4fd317675..2fc5922c92ea 100644 --- a/source/extensions/filters/network/dubbo_proxy/filters/BUILD +++ b/source/extensions/filters/network/dubbo_proxy/filters/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/dubbo_proxy/router/BUILD b/source/extensions/filters/network/dubbo_proxy/router/BUILD index 13a115434790..9dd2cf7e46c8 100644 --- a/source/extensions/filters/network/dubbo_proxy/router/BUILD +++ b/source/extensions/filters/network/dubbo_proxy/router/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/echo/BUILD b/source/extensions/filters/network/echo/BUILD index 6e26725de2fb..6d39336775b0 100644 --- a/source/extensions/filters/network/echo/BUILD +++ b/source/extensions/filters/network/echo/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Echo L4 network filter. This is primarily a simplistic example. -# Public docs: docs/root/configuration/network_filters/echo_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Echo L4 network filter. This is primarily a simplistic example. +# Public docs: docs/root/configuration/network_filters/echo_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/ext_authz/BUILD b/source/extensions/filters/network/ext_authz/BUILD index 286c454dc9cd..e321d1b1221d 100644 --- a/source/extensions/filters/network/ext_authz/BUILD +++ b/source/extensions/filters/network/ext_authz/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# External authorization L4 network filter -# Public docs: TODO(saumoh): Docs needed in docs/root/configuration/network_filters - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# External authorization L4 network filter +# Public docs: TODO(saumoh): Docs needed in docs/root/configuration/network_filters + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/http_connection_manager/BUILD b/source/extensions/filters/network/http_connection_manager/BUILD index 21a10ddadef3..ec576a8abac9 100644 --- a/source/extensions/filters/network/http_connection_manager/BUILD +++ b/source/extensions/filters/network/http_connection_manager/BUILD @@ -1,15 +1,15 @@ -licenses(["notice"]) # Apache 2 - -# L4 network filter that implements HTTP protocol handling and filtering. This filter internally -# drives all of the L7 HTTP filters. -# Public docs: docs/root/configuration/http_conn_man/http_conn_man.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# L4 network filter that implements HTTP protocol handling and filtering. This filter internally +# drives all of the L7 HTTP filters. +# Public docs: docs/root/configuration/http_conn_man/http_conn_man.rst + envoy_package() envoy_cc_extension( diff --git a/source/extensions/filters/network/kafka/BUILD b/source/extensions/filters/network/kafka/BUILD index f4588076cfae..495a94a7bad6 100644 --- a/source/extensions/filters/network/kafka/BUILD +++ b/source/extensions/filters/network/kafka/BUILD @@ -1,8 +1,4 @@ -licenses(["notice"]) # Apache 2 - -# Kafka network filter. -# Broker filter public docs: docs/root/configuration/network_filters/kafka_broker_filter.rst - +load("@rules_python//python:defs.bzl", "py_binary", "py_library") load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +6,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Kafka network filter. +# Broker filter public docs: docs/root/configuration/network_filters/kafka_broker_filter.rst + envoy_package() envoy_cc_extension( diff --git a/source/extensions/filters/network/local_ratelimit/BUILD b/source/extensions/filters/network/local_ratelimit/BUILD index c13b64a3b73d..052b817726d9 100644 --- a/source/extensions/filters/network/local_ratelimit/BUILD +++ b/source/extensions/filters/network/local_ratelimit/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Local ratelimit L4 network filter -# Public docs: docs/root/configuration/network_filters/local_rate_limit_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Local ratelimit L4 network filter +# Public docs: docs/root/configuration/network_filters/local_rate_limit_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/mongo_proxy/BUILD b/source/extensions/filters/network/mongo_proxy/BUILD index e471803285ad..04c14c2c610c 100644 --- a/source/extensions/filters/network/mongo_proxy/BUILD +++ b/source/extensions/filters/network/mongo_proxy/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Mongo proxy L4 network filter (observability and fault injection). -# Public docs: docs/root/configuration/network_filters/mongo_proxy_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Mongo proxy L4 network filter (observability and fault injection). +# Public docs: docs/root/configuration/network_filters/mongo_proxy_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/mysql_proxy/BUILD b/source/extensions/filters/network/mysql_proxy/BUILD index bd27d007f8b2..99b5ebdd8ae9 100644 --- a/source/extensions/filters/network/mysql_proxy/BUILD +++ b/source/extensions/filters/network/mysql_proxy/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# MySQL proxy L7 network filter. -# Public docs: docs/root/configuration/network_filters/mysql_proxy_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# MySQL proxy L7 network filter. +# Public docs: docs/root/configuration/network_filters/mysql_proxy_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/postgres_proxy/BUILD b/source/extensions/filters/network/postgres_proxy/BUILD index 05b99ade974f..a3c13b7c1633 100644 --- a/source/extensions/filters/network/postgres_proxy/BUILD +++ b/source/extensions/filters/network/postgres_proxy/BUILD @@ -1,10 +1,3 @@ -licenses(["notice"]) # Apache 2 - -#package(default_visibility = ["//visibility:public"]) - -# PostgresSQL proxy L7 network filter. -# Public docs: docs/root/configuration/network_filters/postgres_proxy_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -12,6 +5,13 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +#package(default_visibility = ["//visibility:public"]) + +# PostgresSQL proxy L7 network filter. +# Public docs: docs/root/configuration/network_filters/postgres_proxy_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/ratelimit/BUILD b/source/extensions/filters/network/ratelimit/BUILD index 6ac6dc7f87f1..68f54558afa4 100644 --- a/source/extensions/filters/network/ratelimit/BUILD +++ b/source/extensions/filters/network/ratelimit/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Ratelimit L4 network filter -# Public docs: docs/root/configuration/network_filters/rate_limit_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Ratelimit L4 network filter +# Public docs: docs/root/configuration/network_filters/rate_limit_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/rbac/BUILD b/source/extensions/filters/network/rbac/BUILD index f5c63db53d0a..367104e913d8 100644 --- a/source/extensions/filters/network/rbac/BUILD +++ b/source/extensions/filters/network/rbac/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_extension( diff --git a/source/extensions/filters/network/redis_proxy/BUILD b/source/extensions/filters/network/redis_proxy/BUILD index 38611a99f1d5..4d452f0cad3c 100644 --- a/source/extensions/filters/network/redis_proxy/BUILD +++ b/source/extensions/filters/network/redis_proxy/BUILD @@ -1,9 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Redis proxy L4 network filter. Implements consistent hashing and observability for large redis -# clusters. -# Public docs: docs/root/configuration/network_filters/redis_proxy_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -11,6 +5,12 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Redis proxy L4 network filter. Implements consistent hashing and observability for large redis +# clusters. +# Public docs: docs/root/configuration/network_filters/redis_proxy_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/rocketmq_proxy/BUILD b/source/extensions/filters/network/rocketmq_proxy/BUILD index 65c4f18be827..7ce5e971d74a 100644 --- a/source/extensions/filters/network/rocketmq_proxy/BUILD +++ b/source/extensions/filters/network/rocketmq_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/rocketmq_proxy/router/BUILD b/source/extensions/filters/network/rocketmq_proxy/router/BUILD index 19227abff64a..03f3b70a34be 100644 --- a/source/extensions/filters/network/rocketmq_proxy/router/BUILD +++ b/source/extensions/filters/network/rocketmq_proxy/router/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/sni_cluster/BUILD b/source/extensions/filters/network/sni_cluster/BUILD index 06dbdf39d290..6524b5defe1e 100644 --- a/source/extensions/filters/network/sni_cluster/BUILD +++ b/source/extensions/filters/network/sni_cluster/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/sni_dynamic_forward_proxy/BUILD b/source/extensions/filters/network/sni_dynamic_forward_proxy/BUILD index b4a08a55260c..d7f95b44d6bd 100644 --- a/source/extensions/filters/network/sni_dynamic_forward_proxy/BUILD +++ b/source/extensions/filters/network/sni_dynamic_forward_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/tcp_proxy/BUILD b/source/extensions/filters/network/tcp_proxy/BUILD index 9b6db30952a0..312b3233b10d 100644 --- a/source/extensions/filters/network/tcp_proxy/BUILD +++ b/source/extensions/filters/network/tcp_proxy/BUILD @@ -1,14 +1,14 @@ -licenses(["notice"]) # Apache 2 - -# TCP proxy L4 network filter. -# Public docs: docs/root/configuration/network_filters/tcp_proxy_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# TCP proxy L4 network filter. +# Public docs: docs/root/configuration/network_filters/tcp_proxy_filter.rst + envoy_package() envoy_cc_extension( diff --git a/source/extensions/filters/network/thrift_proxy/BUILD b/source/extensions/filters/network/thrift_proxy/BUILD index cad78eb1d783..baa733731637 100644 --- a/source/extensions/filters/network/thrift_proxy/BUILD +++ b/source/extensions/filters/network/thrift_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/thrift_proxy/filters/BUILD b/source/extensions/filters/network/thrift_proxy/filters/BUILD index ba1054d990cf..808e42dd8e98 100644 --- a/source/extensions/filters/network/thrift_proxy/filters/BUILD +++ b/source/extensions/filters/network/thrift_proxy/filters/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/thrift_proxy/filters/ratelimit/BUILD b/source/extensions/filters/network/thrift_proxy/filters/ratelimit/BUILD index 953db0fdffc7..5c136b0a0353 100644 --- a/source/extensions/filters/network/thrift_proxy/filters/ratelimit/BUILD +++ b/source/extensions/filters/network/thrift_proxy/filters/ratelimit/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/network/thrift_proxy/router/BUILD b/source/extensions/filters/network/thrift_proxy/router/BUILD index f268e6a85cbd..74a706741538 100644 --- a/source/extensions/filters/network/thrift_proxy/router/BUILD +++ b/source/extensions/filters/network/thrift_proxy/router/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_extension( diff --git a/source/extensions/filters/network/zookeeper_proxy/BUILD b/source/extensions/filters/network/zookeeper_proxy/BUILD index 5582ecdec9fe..301498c6465b 100644 --- a/source/extensions/filters/network/zookeeper_proxy/BUILD +++ b/source/extensions/filters/network/zookeeper_proxy/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# ZooKeeper proxy L7 network filter. -# Public docs: docs/root/configuration/network_filters/zookeeper_proxy_filter.rst - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# ZooKeeper proxy L7 network filter. +# Public docs: docs/root/configuration/network_filters/zookeeper_proxy_filter.rst + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/udp/dns_filter/BUILD b/source/extensions/filters/udp/dns_filter/BUILD index b538d52110a4..ab3de9ef5f08 100644 --- a/source/extensions/filters/udp/dns_filter/BUILD +++ b/source/extensions/filters/udp/dns_filter/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/filters/udp/udp_proxy/BUILD b/source/extensions/filters/udp/udp_proxy/BUILD index c111de929f66..7b9efa4498a2 100644 --- a/source/extensions/filters/udp/udp_proxy/BUILD +++ b/source/extensions/filters/udp/udp_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/grpc_credentials/BUILD b/source/extensions/grpc_credentials/BUILD index 6156949edef6..06456dbbcb5e 100644 --- a/source/extensions/grpc_credentials/BUILD +++ b/source/extensions/grpc_credentials/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/grpc_credentials/aws_iam/BUILD b/source/extensions/grpc_credentials/aws_iam/BUILD index 2b8980e7651f..4c3e179096b1 100644 --- a/source/extensions/grpc_credentials/aws_iam/BUILD +++ b/source/extensions/grpc_credentials/aws_iam/BUILD @@ -1,13 +1,13 @@ -licenses(["notice"]) # Apache 2 - -# AWS IAM gRPC Credentials - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# AWS IAM gRPC Credentials + envoy_package() envoy_cc_extension( diff --git a/source/extensions/grpc_credentials/example/BUILD b/source/extensions/grpc_credentials/example/BUILD index b62762a2030d..30025a7c046e 100644 --- a/source/extensions/grpc_credentials/example/BUILD +++ b/source/extensions/grpc_credentials/example/BUILD @@ -1,13 +1,13 @@ -licenses(["notice"]) # Apache 2 - -# Example gRPC Credentials - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Example gRPC Credentials + envoy_package() envoy_cc_library( diff --git a/source/extensions/grpc_credentials/file_based_metadata/BUILD b/source/extensions/grpc_credentials/file_based_metadata/BUILD index f1feb60d3196..b41ac277c73f 100644 --- a/source/extensions/grpc_credentials/file_based_metadata/BUILD +++ b/source/extensions/grpc_credentials/file_based_metadata/BUILD @@ -1,13 +1,13 @@ -licenses(["notice"]) # Apache 2 - -# File Based Metadata gRPC Credentials - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# File Based Metadata gRPC Credentials + envoy_package() envoy_cc_extension( diff --git a/source/extensions/health_checkers/BUILD b/source/extensions/health_checkers/BUILD index 6156949edef6..06456dbbcb5e 100644 --- a/source/extensions/health_checkers/BUILD +++ b/source/extensions/health_checkers/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/health_checkers/redis/BUILD b/source/extensions/health_checkers/redis/BUILD index 0dbdfb73694e..3dd32163468a 100644 --- a/source/extensions/health_checkers/redis/BUILD +++ b/source/extensions/health_checkers/redis/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Redis custom health checker. - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Redis custom health checker. + envoy_package() envoy_cc_library( diff --git a/source/extensions/internal_redirect/BUILD b/source/extensions/internal_redirect/BUILD index 6156949edef6..06456dbbcb5e 100644 --- a/source/extensions/internal_redirect/BUILD +++ b/source/extensions/internal_redirect/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/internal_redirect/allow_listed_routes/BUILD b/source/extensions/internal_redirect/allow_listed_routes/BUILD index 02cf2789dc79..c2ee85a134ac 100644 --- a/source/extensions/internal_redirect/allow_listed_routes/BUILD +++ b/source/extensions/internal_redirect/allow_listed_routes/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/internal_redirect/previous_routes/BUILD b/source/extensions/internal_redirect/previous_routes/BUILD index d022a4c6719c..91f76aebc135 100644 --- a/source/extensions/internal_redirect/previous_routes/BUILD +++ b/source/extensions/internal_redirect/previous_routes/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/internal_redirect/safe_cross_scheme/BUILD b/source/extensions/internal_redirect/safe_cross_scheme/BUILD index 94293850b53b..50433bf8fb42 100644 --- a/source/extensions/internal_redirect/safe_cross_scheme/BUILD +++ b/source/extensions/internal_redirect/safe_cross_scheme/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/quic_listeners/quiche/BUILD b/source/extensions/quic_listeners/quiche/BUILD index aa0be8877546..124be2ac6d51 100644 --- a/source/extensions/quic_listeners/quiche/BUILD +++ b/source/extensions/quic_listeners/quiche/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/quic_listeners/quiche/platform/BUILD b/source/extensions/quic_listeners/quiche/platform/BUILD index 3f5cb5fef47f..2d36d09fa280 100644 --- a/source/extensions/quic_listeners/quiche/platform/BUILD +++ b/source/extensions/quic_listeners/quiche/platform/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() # Build targets in this package are part of the QUICHE platform implementation. diff --git a/source/extensions/resource_monitors/BUILD b/source/extensions/resource_monitors/BUILD index 6156949edef6..06456dbbcb5e 100644 --- a/source/extensions/resource_monitors/BUILD +++ b/source/extensions/resource_monitors/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/resource_monitors/common/BUILD b/source/extensions/resource_monitors/common/BUILD index ff6773aaa8d1..7e759d696abd 100644 --- a/source/extensions/resource_monitors/common/BUILD +++ b/source/extensions/resource_monitors/common/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/resource_monitors/fixed_heap/BUILD b/source/extensions/resource_monitors/fixed_heap/BUILD index e54cfe813179..4feb2a6e7cd2 100644 --- a/source/extensions/resource_monitors/fixed_heap/BUILD +++ b/source/extensions/resource_monitors/fixed_heap/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/resource_monitors/injected_resource/BUILD b/source/extensions/resource_monitors/injected_resource/BUILD index 650d87c69b98..4b3702afffdf 100644 --- a/source/extensions/resource_monitors/injected_resource/BUILD +++ b/source/extensions/resource_monitors/injected_resource/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/retry/host/BUILD b/source/extensions/retry/host/BUILD index 6156949edef6..06456dbbcb5e 100644 --- a/source/extensions/retry/host/BUILD +++ b/source/extensions/retry/host/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/retry/host/omit_canary_hosts/BUILD b/source/extensions/retry/host/omit_canary_hosts/BUILD index 39ecd978faaf..1f4f6fed89a7 100644 --- a/source/extensions/retry/host/omit_canary_hosts/BUILD +++ b/source/extensions/retry/host/omit_canary_hosts/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/retry/host/omit_host_metadata/BUILD b/source/extensions/retry/host/omit_host_metadata/BUILD index d2a0de1ceac7..f0e4013ecb94 100644 --- a/source/extensions/retry/host/omit_host_metadata/BUILD +++ b/source/extensions/retry/host/omit_host_metadata/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/retry/host/previous_hosts/BUILD b/source/extensions/retry/host/previous_hosts/BUILD index 17ab0e326132..7ec06c64c705 100644 --- a/source/extensions/retry/host/previous_hosts/BUILD +++ b/source/extensions/retry/host/previous_hosts/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/retry/priority/BUILD b/source/extensions/retry/priority/BUILD index 6156949edef6..06456dbbcb5e 100644 --- a/source/extensions/retry/priority/BUILD +++ b/source/extensions/retry/priority/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/retry/priority/previous_priorities/BUILD b/source/extensions/retry/priority/previous_priorities/BUILD index 1a545c2509f0..65061e5740da 100644 --- a/source/extensions/retry/priority/previous_priorities/BUILD +++ b/source/extensions/retry/priority/previous_priorities/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/stat_sinks/BUILD b/source/extensions/stat_sinks/BUILD index 6156949edef6..06456dbbcb5e 100644 --- a/source/extensions/stat_sinks/BUILD +++ b/source/extensions/stat_sinks/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/stat_sinks/common/statsd/BUILD b/source/extensions/stat_sinks/common/statsd/BUILD index 57c0b009c506..378a7146234d 100644 --- a/source/extensions/stat_sinks/common/statsd/BUILD +++ b/source/extensions/stat_sinks/common/statsd/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/stat_sinks/dog_statsd/BUILD b/source/extensions/stat_sinks/dog_statsd/BUILD index 0c9e5f299573..2a6e1d7d9c44 100644 --- a/source/extensions/stat_sinks/dog_statsd/BUILD +++ b/source/extensions/stat_sinks/dog_statsd/BUILD @@ -1,14 +1,14 @@ -licenses(["notice"]) # Apache 2 - -# Stats sink for the DataDog (https://www.datadoghq.com/) variant of the statsd protocol -# (https://docs.datadoghq.com/developers/dogstatsd/). - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Stats sink for the DataDog (https://www.datadoghq.com/) variant of the statsd protocol +# (https://docs.datadoghq.com/developers/dogstatsd/). + envoy_package() envoy_cc_extension( diff --git a/source/extensions/stat_sinks/hystrix/BUILD b/source/extensions/stat_sinks/hystrix/BUILD index d058088df9b2..463576dd757c 100644 --- a/source/extensions/stat_sinks/hystrix/BUILD +++ b/source/extensions/stat_sinks/hystrix/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Stats sink for the basic version of the hystrix protocol (https://github.com/b/hystrix_spec). - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Stats sink for the basic version of the hystrix protocol (https://github.com/b/hystrix_spec). + envoy_package() envoy_cc_extension( diff --git a/source/extensions/stat_sinks/metrics_service/BUILD b/source/extensions/stat_sinks/metrics_service/BUILD index c26135a75049..ecd35309b7fb 100644 --- a/source/extensions/stat_sinks/metrics_service/BUILD +++ b/source/extensions/stat_sinks/metrics_service/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Stats sink for the gRPC metrics service: api/envoy/service/metrics/v2/metrics_service.proto - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Stats sink for the gRPC metrics service: api/envoy/service/metrics/v2/metrics_service.proto + envoy_package() envoy_cc_library( diff --git a/source/extensions/stat_sinks/statsd/BUILD b/source/extensions/stat_sinks/statsd/BUILD index 5ec22566d12b..a9c862e12e8b 100644 --- a/source/extensions/stat_sinks/statsd/BUILD +++ b/source/extensions/stat_sinks/statsd/BUILD @@ -1,13 +1,13 @@ -licenses(["notice"]) # Apache 2 - -# Stats sink for the basic version of the statsd protocol (https://github.com/b/statsd_spec). - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Stats sink for the basic version of the statsd protocol (https://github.com/b/statsd_spec). + envoy_package() envoy_cc_extension( diff --git a/source/extensions/tracers/BUILD b/source/extensions/tracers/BUILD index 6156949edef6..06456dbbcb5e 100644 --- a/source/extensions/tracers/BUILD +++ b/source/extensions/tracers/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/tracers/common/BUILD b/source/extensions/tracers/common/BUILD index 04a67fdad5f4..f31e56bc9cd6 100644 --- a/source/extensions/tracers/common/BUILD +++ b/source/extensions/tracers/common/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/tracers/common/ot/BUILD b/source/extensions/tracers/common/ot/BUILD index 29dd62e655f8..16a0a3642905 100644 --- a/source/extensions/tracers/common/ot/BUILD +++ b/source/extensions/tracers/common/ot/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/tracers/datadog/BUILD b/source/extensions/tracers/datadog/BUILD index 95cc7d74a212..bd35a9a25431 100644 --- a/source/extensions/tracers/datadog/BUILD +++ b/source/extensions/tracers/datadog/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Trace driver for Datadog (https://datadoghq.com/) - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Trace driver for Datadog (https://datadoghq.com/) + envoy_package() envoy_cc_library( diff --git a/source/extensions/tracers/dynamic_ot/BUILD b/source/extensions/tracers/dynamic_ot/BUILD index 4302159453d8..bd5a269fc130 100644 --- a/source/extensions/tracers/dynamic_ot/BUILD +++ b/source/extensions/tracers/dynamic_ot/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Trace driver for dynamically loadable C++ OpenTracing drivers (http://opentracing.io/). - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Trace driver for dynamically loadable C++ OpenTracing drivers (http://opentracing.io/). + envoy_package() envoy_cc_library( diff --git a/source/extensions/tracers/lightstep/BUILD b/source/extensions/tracers/lightstep/BUILD index a72d39b37376..840162fe4f37 100644 --- a/source/extensions/tracers/lightstep/BUILD +++ b/source/extensions/tracers/lightstep/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Trace driver for LightStep (https://lightstep.com/) - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Trace driver for LightStep (https://lightstep.com/) + envoy_package() envoy_cc_library( diff --git a/source/extensions/tracers/opencensus/BUILD b/source/extensions/tracers/opencensus/BUILD index 0956ae5cce3a..d0a66792196a 100644 --- a/source/extensions/tracers/opencensus/BUILD +++ b/source/extensions/tracers/opencensus/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Trace driver for OpenCensus: https://opencensus.io/ - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Trace driver for OpenCensus: https://opencensus.io/ + envoy_package() envoy_cc_extension( diff --git a/source/extensions/tracers/xray/BUILD b/source/extensions/tracers/xray/BUILD index f225797780d3..09fa6ea67191 100644 --- a/source/extensions/tracers/xray/BUILD +++ b/source/extensions/tracers/xray/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Trace driver for AWS X-Ray. - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +6,10 @@ load( "envoy_proto_library", ) +licenses(["notice"]) # Apache 2 + +# Trace driver for AWS X-Ray. + envoy_package() envoy_proto_library( diff --git a/source/extensions/tracers/zipkin/BUILD b/source/extensions/tracers/zipkin/BUILD index f2321bab8710..942d2c3744e2 100644 --- a/source/extensions/tracers/zipkin/BUILD +++ b/source/extensions/tracers/zipkin/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Trace driver for Zipkin (https://zipkin.io/). - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Trace driver for Zipkin (https://zipkin.io/). + envoy_package() envoy_cc_library( diff --git a/source/extensions/transport_sockets/BUILD b/source/extensions/transport_sockets/BUILD index 6156949edef6..06456dbbcb5e 100644 --- a/source/extensions/transport_sockets/BUILD +++ b/source/extensions/transport_sockets/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/extensions/transport_sockets/alts/BUILD b/source/extensions/transport_sockets/alts/BUILD index 4575772e5a58..5145a1abdb1d 100644 --- a/source/extensions/transport_sockets/alts/BUILD +++ b/source/extensions/transport_sockets/alts/BUILD @@ -1,8 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# ALTS transport socket. This provides Google's ALTS protocol support in GCP to Envoy. -# https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security/ - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -10,6 +5,11 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# ALTS transport socket. This provides Google's ALTS protocol support in GCP to Envoy. +# https://cloud.google.com/security/encryption-in-transit/application-layer-transport-security/ + envoy_package() envoy_cc_library( diff --git a/source/extensions/transport_sockets/raw_buffer/BUILD b/source/extensions/transport_sockets/raw_buffer/BUILD index f5b11f64def9..4d5bdacbe88c 100644 --- a/source/extensions/transport_sockets/raw_buffer/BUILD +++ b/source/extensions/transport_sockets/raw_buffer/BUILD @@ -1,13 +1,13 @@ -licenses(["notice"]) # Apache 2 - -# Built-in plaintext connection transport socket. - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Built-in plaintext connection transport socket. + envoy_package() envoy_cc_extension( diff --git a/source/extensions/transport_sockets/tap/BUILD b/source/extensions/transport_sockets/tap/BUILD index e9107a046cfc..e319ee596df3 100644 --- a/source/extensions/transport_sockets/tap/BUILD +++ b/source/extensions/transport_sockets/tap/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# tap wrapper around a transport socket. - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# tap wrapper around a transport socket. + envoy_package() envoy_cc_library( diff --git a/source/extensions/transport_sockets/tls/BUILD b/source/extensions/transport_sockets/tls/BUILD index 7cf2407b61fb..f885d1c6bfa9 100644 --- a/source/extensions/transport_sockets/tls/BUILD +++ b/source/extensions/transport_sockets/tls/BUILD @@ -1,7 +1,3 @@ -licenses(["notice"]) # Apache 2 - -# Built-in TLS connection transport socket. - load( "//bazel:envoy_build_system.bzl", "envoy_cc_extension", @@ -9,6 +5,10 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + +# Built-in TLS connection transport socket. + envoy_package() envoy_cc_extension( diff --git a/source/extensions/transport_sockets/tls/private_key/BUILD b/source/extensions/transport_sockets/tls/private_key/BUILD index 8f8a96663c14..8b0563f5e06d 100644 --- a/source/extensions/transport_sockets/tls/private_key/BUILD +++ b/source/extensions/transport_sockets/tls/private_key/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/server/BUILD b/source/server/BUILD index 18042399a07e..eefcabc7d458 100644 --- a/source/server/BUILD +++ b/source/server/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", @@ -8,6 +6,8 @@ load( "envoy_select_hot_restart", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/server/admin/BUILD b/source/server/admin/BUILD index 491bdefcd940..1ddc534ef0bc 100644 --- a/source/server/admin/BUILD +++ b/source/server/admin/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/source/server/config_validation/BUILD b/source/server/config_validation/BUILD index f3295a3f5f60..713ea38dad22 100644 --- a/source/server/config_validation/BUILD +++ b/source/server/config_validation/BUILD @@ -1,7 +1,7 @@ -licenses(["notice"]) # Apache 2 - load("//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package") +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/test/BUILD b/test/BUILD index a3cd553d30e8..ab4a56a7d42e 100644 --- a/test/BUILD +++ b/test/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() # TODO(htuch): remove when we have a solution for https://github.com/bazelbuild/bazel/issues/3510 diff --git a/test/benchmark/BUILD b/test/benchmark/BUILD index 96d08112c091..afba86c9dd22 100644 --- a/test/benchmark/BUILD +++ b/test/benchmark/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/common/access_log/BUILD b/test/common/access_log/BUILD index 3a71099e7276..bcd51b067bd6 100644 --- a/test/common/access_log/BUILD +++ b/test/common/access_log/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/buffer/BUILD b/test/common/buffer/BUILD index c0968d43d80d..bd01534ca6ca 100644 --- a/test/common/buffer/BUILD +++ b/test/common/buffer/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_benchmark_test", @@ -11,6 +9,8 @@ load( "envoy_proto_library", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/common/common/BUILD b/test/common/common/BUILD index fefbe4c3183c..5842443825c6 100644 --- a/test/common/common/BUILD +++ b/test/common/common/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_benchmark_test", @@ -9,6 +7,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/config/BUILD b/test/common/config/BUILD index 2310f7a7330c..4d55e78e637e 100644 --- a/test/common/config/BUILD +++ b/test/common/config/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -8,6 +6,8 @@ load( "envoy_proto_library", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/crypto/BUILD b/test/common/crypto/BUILD index b1f7d592ace4..614c0e8c5b82 100644 --- a/test/common/crypto/BUILD +++ b/test/common/crypto/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/event/BUILD b/test/common/event/BUILD index f2af3acf3dc5..a275f39c1630 100644 --- a/test/common/event/BUILD +++ b/test/common/event/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/filesystem/BUILD b/test/common/filesystem/BUILD index de9c92bb4c04..68f4eca5f716 100644 --- a/test/common/filesystem/BUILD +++ b/test/common/filesystem/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/formatter/BUILD b/test/common/formatter/BUILD index 77b26bc4a05f..bb4ffbcacdcf 100644 --- a/test/common/formatter/BUILD +++ b/test/common/formatter/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_benchmark_test", @@ -10,6 +8,8 @@ load( "envoy_proto_library", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_proto_library( diff --git a/test/common/grpc/BUILD b/test/common/grpc/BUILD index 612f7f798b5b..71e1a071604d 100644 --- a/test/common/grpc/BUILD +++ b/test/common/grpc/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_fuzz_test", @@ -9,6 +7,8 @@ load( "envoy_select_google_grpc", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/html/BUILD b/test/common/html/BUILD index 6dfff216dc3e..378ddd98edde 100644 --- a/test/common/html/BUILD +++ b/test/common/html/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/http/BUILD b/test/common/http/BUILD index 105f9e510006..fc43ab1ff66f 100644 --- a/test/common/http/BUILD +++ b/test/common/http/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_benchmark_test", @@ -11,6 +9,8 @@ load( "envoy_proto_library", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/http/http1/BUILD b/test/common/http/http1/BUILD index eac82f9734ec..6bfc1268c9c9 100644 --- a/test/common/http/http1/BUILD +++ b/test/common/http/http1/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/http/http2/BUILD b/test/common/http/http2/BUILD index 1d5ba73e5a52..794da7621781 100644 --- a/test/common/http/http2/BUILD +++ b/test/common/http/http2/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_fuzz_test", @@ -8,6 +6,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/init/BUILD b/test/common/init/BUILD index 894e7493aa72..e2d164576326 100644 --- a/test/common/init/BUILD +++ b/test/common/init/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/json/BUILD b/test/common/json/BUILD index a3b170033a51..803f2abca6af 100644 --- a/test/common/json/BUILD +++ b/test/common/json/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_fuzz_test", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_fuzz_test( diff --git a/test/common/json/config_schemas_test_data/BUILD b/test/common/json/config_schemas_test_data/BUILD index 603cfa6adcca..185f28e77ce9 100644 --- a/test/common/json/config_schemas_test_data/BUILD +++ b/test/common/json/config_schemas_test_data/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", "envoy_py_test_binary", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_py_test_binary( diff --git a/test/common/local_reply/BUILD b/test/common/local_reply/BUILD index fcd56c500a53..df768fb66dd5 100644 --- a/test/common/local_reply/BUILD +++ b/test/common/local_reply/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/memory/BUILD b/test/common/memory/BUILD index 55aa793bcee1..1688511f5db9 100644 --- a/test/common/memory/BUILD +++ b/test/common/memory/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/network/BUILD b/test/common/network/BUILD index c3c5bc8ba451..495473031b6d 100644 --- a/test/common/network/BUILD +++ b/test/common/network/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_benchmark_test", @@ -10,6 +8,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/common/protobuf/BUILD b/test/common/protobuf/BUILD index 389e4e235d4d..851765f03b58 100644 --- a/test/common/protobuf/BUILD +++ b/test/common/protobuf/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_fuzz_test", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/router/BUILD b/test/common/router/BUILD index 3d1264b07fec..25d03dfbe973 100644 --- a/test/common/router/BUILD +++ b/test/common/router/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_fuzz_test", @@ -11,6 +9,8 @@ load( "envoy_proto_library", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/runtime/BUILD b/test/common/runtime/BUILD index c2cd9d5be4be..47bb5e802978 100644 --- a/test/common/runtime/BUILD +++ b/test/common/runtime/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() exports_files(["filesystem_setup.sh"]) diff --git a/test/common/secret/BUILD b/test/common/secret/BUILD index 80ce11317c43..8ff77b980fa7 100644 --- a/test/common/secret/BUILD +++ b/test/common/secret/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/shared_pool/BUILD b/test/common/shared_pool/BUILD index 9a9a641f380a..f4eaecda80fa 100644 --- a/test/common/shared_pool/BUILD +++ b/test/common/shared_pool/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/signal/BUILD b/test/common/signal/BUILD index 746babe0fedf..97a42a58cafd 100644 --- a/test/common/signal/BUILD +++ b/test/common/signal/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/singleton/BUILD b/test/common/singleton/BUILD index 8076c8bafbe5..cd5e582a5ed8 100644 --- a/test/common/singleton/BUILD +++ b/test/common/singleton/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/stats/BUILD b/test/common/stats/BUILD index 909e4a4c25f4..e947b5dae927 100644 --- a/test/common/stats/BUILD +++ b/test/common/stats/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_fuzz_test", @@ -9,6 +7,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/stream_info/BUILD b/test/common/stream_info/BUILD index de97bc18ddea..9b88e001fc35 100644 --- a/test/common/stream_info/BUILD +++ b/test/common/stream_info/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/tcp/BUILD b/test/common/tcp/BUILD index 097d23b9ecb6..f455f407e707 100644 --- a/test/common/tcp/BUILD +++ b/test/common/tcp/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/tcp_proxy/BUILD b/test/common/tcp_proxy/BUILD index 493f742d2db1..955a2b05070e 100644 --- a/test/common/tcp_proxy/BUILD +++ b/test/common/tcp_proxy/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/thread_local/BUILD b/test/common/thread_local/BUILD index c1d95410e5ab..fdd28bc076fb 100644 --- a/test/common/thread_local/BUILD +++ b/test/common/thread_local/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/tracing/BUILD b/test/common/tracing/BUILD index 73152809a8f4..acc6850f3f72 100644 --- a/test/common/tracing/BUILD +++ b/test/common/tracing/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/common/upstream/BUILD b/test/common/upstream/BUILD index 19f713f672a2..b12cb6337c6e 100644 --- a/test/common/upstream/BUILD +++ b/test/common/upstream/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_benchmark_test", @@ -9,6 +7,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/config/BUILD b/test/config/BUILD index baf14f36e68f..33746b1c0cec 100644 --- a/test/config/BUILD +++ b/test/config/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/config/integration/BUILD b/test/config/integration/BUILD index 29fe25251783..684312b35b20 100644 --- a/test/config/integration/BUILD +++ b/test/config/integration/BUILD @@ -1,10 +1,10 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() exports_files([ diff --git a/test/config/integration/certs/BUILD b/test/config/integration/certs/BUILD index a4350864d8d3..8e80a2f1d2f7 100644 --- a/test/config/integration/certs/BUILD +++ b/test/config/integration/certs/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() filegroup( diff --git a/test/config_test/BUILD b/test/config_test/BUILD index e8ccfd04daad..31a067438c82 100644 --- a/test/config_test/BUILD +++ b/test/config_test/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -9,6 +7,8 @@ load( load("//source/extensions:all_extensions.bzl", "envoy_all_extensions") load("//bazel:repositories.bzl", "PPC_SKIP_TARGETS", "WINDOWS_SKIP_TARGETS") +licenses(["notice"]) # Apache 2 + envoy_package() exports_files(["example_configs_test_setup.sh"]) diff --git a/test/dependencies/BUILD b/test/dependencies/BUILD index 2e6ae296b760..1ef365b90fc2 100644 --- a/test/dependencies/BUILD +++ b/test/dependencies/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/exe/BUILD b/test/exe/BUILD index 7540aafa7525..ffae95b57f47 100644 --- a/test/exe/BUILD +++ b/test/exe/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -7,6 +5,8 @@ load( "envoy_sh_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_sh_test( diff --git a/test/extensions/access_loggers/common/BUILD b/test/extensions/access_loggers/common/BUILD index 9dbb3c91c70f..a6f87344a490 100644 --- a/test/extensions/access_loggers/common/BUILD +++ b/test/extensions/access_loggers/common/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/access_loggers/file/BUILD b/test/extensions/access_loggers/file/BUILD index 268e48d29837..76361877e881 100644 --- a/test/extensions/access_loggers/file/BUILD +++ b/test/extensions/access_loggers/file/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/access_loggers/grpc/BUILD b/test/extensions/access_loggers/grpc/BUILD index 570f723c6c2f..219520a97056 100644 --- a/test/extensions/access_loggers/grpc/BUILD +++ b/test/extensions/access_loggers/grpc/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/clusters/aggregate/BUILD b/test/extensions/clusters/aggregate/BUILD index b5d47f29614f..2e445737fcf9 100644 --- a/test/extensions/clusters/aggregate/BUILD +++ b/test/extensions/clusters/aggregate/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/clusters/dynamic_forward_proxy/BUILD b/test/extensions/clusters/dynamic_forward_proxy/BUILD index 1668ea02f636..baaf5068a1b5 100644 --- a/test/extensions/clusters/dynamic_forward_proxy/BUILD +++ b/test/extensions/clusters/dynamic_forward_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/clusters/redis/BUILD b/test/extensions/clusters/redis/BUILD index 1fc6aa3a6a08..1ae33bf15b0c 100644 --- a/test/extensions/clusters/redis/BUILD +++ b/test/extensions/clusters/redis/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", @@ -11,6 +9,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/common/BUILD b/test/extensions/common/BUILD index 216c9b56b094..e976a4fc4c1b 100644 --- a/test/extensions/common/BUILD +++ b/test/extensions/common/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/common/aws/BUILD b/test/extensions/common/aws/BUILD index 0f014b4bf458..eae532ee27f9 100644 --- a/test/extensions/common/aws/BUILD +++ b/test/extensions/common/aws/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/extensions/common/dynamic_forward_proxy/BUILD b/test/extensions/common/dynamic_forward_proxy/BUILD index eb51afa1ce87..5c33d024fde2 100644 --- a/test/extensions/common/dynamic_forward_proxy/BUILD +++ b/test/extensions/common/dynamic_forward_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/common/proxy_protocol/BUILD b/test/extensions/common/proxy_protocol/BUILD index e96325c56faf..90a37c8cd60d 100644 --- a/test/extensions/common/proxy_protocol/BUILD +++ b/test/extensions/common/proxy_protocol/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/common/redis/BUILD b/test/extensions/common/redis/BUILD index fc6009a41d71..07bc8e5dc11d 100644 --- a/test/extensions/common/redis/BUILD +++ b/test/extensions/common/redis/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_platform_dep", @@ -11,6 +9,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/extensions/common/tap/BUILD b/test/extensions/common/tap/BUILD index 833f4bbb566c..5483de65de26 100644 --- a/test/extensions/common/tap/BUILD +++ b/test/extensions/common/tap/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/extensions/common/wasm/BUILD b/test/extensions/common/wasm/BUILD index 4a4c0bdda7a6..e85cf73322e4 100644 --- a/test/extensions/common/wasm/BUILD +++ b/test/extensions/common/wasm/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/common/wasm/test_data/BUILD b/test/extensions/common/wasm/test_data/BUILD index ef4f37386280..f46c28bbd63e 100644 --- a/test/extensions/common/wasm/test_data/BUILD +++ b/test/extensions/common/wasm/test_data/BUILD @@ -1,10 +1,10 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() filegroup( diff --git a/test/extensions/compression/gzip/BUILD b/test/extensions/compression/gzip/BUILD index 772bc17016ad..290209d3eb61 100644 --- a/test/extensions/compression/gzip/BUILD +++ b/test/extensions/compression/gzip/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_fuzz_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_fuzz_test( diff --git a/test/extensions/compression/gzip/compressor/BUILD b/test/extensions/compression/gzip/compressor/BUILD index 0121199e1060..6d101cd2aafd 100644 --- a/test/extensions/compression/gzip/compressor/BUILD +++ b/test/extensions/compression/gzip/compressor/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/compression/gzip/decompressor/BUILD b/test/extensions/compression/gzip/decompressor/BUILD index 1816ef8da235..19520c24b545 100644 --- a/test/extensions/compression/gzip/decompressor/BUILD +++ b/test/extensions/compression/gzip/decompressor/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/common/expr/BUILD b/test/extensions/filters/common/expr/BUILD index c6af64c0a0f1..fe758380dc37 100644 --- a/test/extensions/filters/common/expr/BUILD +++ b/test/extensions/filters/common/expr/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_fuzz_test", @@ -11,6 +9,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/common/ext_authz/BUILD b/test/extensions/filters/common/ext_authz/BUILD index c43c822f14b1..9f983589bd63 100644 --- a/test/extensions/filters/common/ext_authz/BUILD +++ b/test/extensions/filters/common/ext_authz/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/filters/common/fault/BUILD b/test/extensions/filters/common/fault/BUILD index a2b3a89d9acb..da4af82caf98 100644 --- a/test/extensions/filters/common/fault/BUILD +++ b/test/extensions/filters/common/fault/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/filters/common/lua/BUILD b/test/extensions/filters/common/lua/BUILD index cbe0ef71b7b7..b6d7bfecd6d5 100644 --- a/test/extensions/filters/common/lua/BUILD +++ b/test/extensions/filters/common/lua/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/filters/common/original_src/BUILD b/test/extensions/filters/common/original_src/BUILD index 02da243f0ca2..1d3a5d28847d 100644 --- a/test/extensions/filters/common/original_src/BUILD +++ b/test/extensions/filters/common/original_src/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/filters/common/ratelimit/BUILD b/test/extensions/filters/common/ratelimit/BUILD index 2bc6d08d7e8b..eb4d027b6eef 100644 --- a/test/extensions/filters/common/ratelimit/BUILD +++ b/test/extensions/filters/common/ratelimit/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/filters/common/rbac/BUILD b/test/extensions/filters/common/rbac/BUILD index 6454c69e159f..64e405da4d91 100644 --- a/test/extensions/filters/common/rbac/BUILD +++ b/test/extensions/filters/common/rbac/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -10,6 +8,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/adaptive_concurrency/BUILD b/test/extensions/filters/http/adaptive_concurrency/BUILD index 5dd177f945bd..c91f90dcfcf5 100644 --- a/test/extensions/filters/http/adaptive_concurrency/BUILD +++ b/test/extensions/filters/http/adaptive_concurrency/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/adaptive_concurrency/controller/BUILD b/test/extensions/filters/http/adaptive_concurrency/controller/BUILD index 94592fb47acf..63bf457be4f3 100644 --- a/test/extensions/filters/http/adaptive_concurrency/controller/BUILD +++ b/test/extensions/filters/http/adaptive_concurrency/controller/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/aws_lambda/BUILD b/test/extensions/filters/http/aws_lambda/BUILD index f20dd5e903aa..4d14f2477630 100644 --- a/test/extensions/filters/http/aws_lambda/BUILD +++ b/test/extensions/filters/http/aws_lambda/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/aws_request_signing/BUILD b/test/extensions/filters/http/aws_request_signing/BUILD index 5a3194877bc2..7496366a2b72 100644 --- a/test/extensions/filters/http/aws_request_signing/BUILD +++ b/test/extensions/filters/http/aws_request_signing/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/buffer/BUILD b/test/extensions/filters/http/buffer/BUILD index 50a68a4f2489..900ab38a6747 100644 --- a/test/extensions/filters/http/buffer/BUILD +++ b/test/extensions/filters/http/buffer/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/cache/BUILD b/test/extensions/filters/http/cache/BUILD index 82eb2ff8dc12..12553fadd9cf 100644 --- a/test/extensions/filters/http/cache/BUILD +++ b/test/extensions/filters/http/cache/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load("//bazel:envoy_build_system.bzl", "envoy_package") load( "//test/extensions:extensions_build_system.bzl", "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/cache/simple_http_cache/BUILD b/test/extensions/filters/http/cache/simple_http_cache/BUILD index 89198975f330..3030d84eeae9 100644 --- a/test/extensions/filters/http/cache/simple_http_cache/BUILD +++ b/test/extensions/filters/http/cache/simple_http_cache/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load("//bazel:envoy_build_system.bzl", "envoy_package") load( "//test/extensions:extensions_build_system.bzl", "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/common/BUILD b/test/extensions/filters/http/common/BUILD index 99dca40599e6..9994b2f0f218 100644 --- a/test/extensions/filters/http/common/BUILD +++ b/test/extensions/filters/http/common/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -11,6 +9,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/extensions/filters/http/common/compressor/BUILD b/test/extensions/filters/http/common/compressor/BUILD index a3cb82c215e4..a29d919d0be6 100644 --- a/test/extensions/filters/http/common/compressor/BUILD +++ b/test/extensions/filters/http/common/compressor/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/filters/http/common/fuzz/BUILD b/test/extensions/filters/http/common/fuzz/BUILD index 9c42dc89bb6d..cc19fb5dfc14 100644 --- a/test/extensions/filters/http/common/fuzz/BUILD +++ b/test/extensions/filters/http/common/fuzz/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_fuzz_test", @@ -12,6 +10,8 @@ load( "envoy_all_extensions", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_proto_library( diff --git a/test/extensions/filters/http/compressor/BUILD b/test/extensions/filters/http/compressor/BUILD index 1a608f282f0a..0da9087a4d99 100644 --- a/test/extensions/filters/http/compressor/BUILD +++ b/test/extensions/filters/http/compressor/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/cors/BUILD b/test/extensions/filters/http/cors/BUILD index 9320855a4af2..a91934cb1249 100644 --- a/test/extensions/filters/http/cors/BUILD +++ b/test/extensions/filters/http/cors/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/csrf/BUILD b/test/extensions/filters/http/csrf/BUILD index 2cde41859068..a7e4b2585968 100644 --- a/test/extensions/filters/http/csrf/BUILD +++ b/test/extensions/filters/http/csrf/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/decompressor/BUILD b/test/extensions/filters/http/decompressor/BUILD index 2da39cd00c40..e6739858b251 100644 --- a/test/extensions/filters/http/decompressor/BUILD +++ b/test/extensions/filters/http/decompressor/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/dynamic_forward_proxy/BUILD b/test/extensions/filters/http/dynamic_forward_proxy/BUILD index 71650b6b24d6..f5fcd3868e1b 100644 --- a/test/extensions/filters/http/dynamic_forward_proxy/BUILD +++ b/test/extensions/filters/http/dynamic_forward_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/dynamo/BUILD b/test/extensions/filters/http/dynamo/BUILD index 4fcc77be7412..e1761811ec40 100644 --- a/test/extensions/filters/http/dynamo/BUILD +++ b/test/extensions/filters/http/dynamo/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/ext_authz/BUILD b/test/extensions/filters/http/ext_authz/BUILD index ef1b8be3cd89..f1524fddc23b 100644 --- a/test/extensions/filters/http/ext_authz/BUILD +++ b/test/extensions/filters/http/ext_authz/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/fault/BUILD b/test/extensions/filters/http/fault/BUILD index 1578099273ed..7938aad25d2c 100644 --- a/test/extensions/filters/http/fault/BUILD +++ b/test/extensions/filters/http/fault/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_library", @@ -10,6 +8,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/grpc_http1_bridge/BUILD b/test/extensions/filters/http/grpc_http1_bridge/BUILD index d429303dbb84..946a6c189c3f 100644 --- a/test/extensions/filters/http/grpc_http1_bridge/BUILD +++ b/test/extensions/filters/http/grpc_http1_bridge/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/grpc_http1_reverse_bridge/BUILD b/test/extensions/filters/http/grpc_http1_reverse_bridge/BUILD index c3ce59f00bc7..b50e0b1295dd 100644 --- a/test/extensions/filters/http/grpc_http1_reverse_bridge/BUILD +++ b/test/extensions/filters/http/grpc_http1_reverse_bridge/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/grpc_json_transcoder/BUILD b/test/extensions/filters/http/grpc_json_transcoder/BUILD index bac0bd17b1db..6f2a2deac803 100644 --- a/test/extensions/filters/http/grpc_json_transcoder/BUILD +++ b/test/extensions/filters/http/grpc_json_transcoder/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/grpc_stats/BUILD b/test/extensions/filters/http/grpc_stats/BUILD index 15dd7ab9aeff..03f148c20036 100644 --- a/test/extensions/filters/http/grpc_stats/BUILD +++ b/test/extensions/filters/http/grpc_stats/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/grpc_web/BUILD b/test/extensions/filters/http/grpc_web/BUILD index ef16548a00dc..b0f586a9c9c0 100644 --- a/test/extensions/filters/http/grpc_web/BUILD +++ b/test/extensions/filters/http/grpc_web/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/gzip/BUILD b/test/extensions/filters/http/gzip/BUILD index 4924425df994..2126067c5bee 100644 --- a/test/extensions/filters/http/gzip/BUILD +++ b/test/extensions/filters/http/gzip/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/header_to_metadata/BUILD b/test/extensions/filters/http/header_to_metadata/BUILD index 20e85fba58ce..80fd87fb9605 100644 --- a/test/extensions/filters/http/header_to_metadata/BUILD +++ b/test/extensions/filters/http/header_to_metadata/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/health_check/BUILD b/test/extensions/filters/http/health_check/BUILD index 924cea4f2970..04852922e7fb 100644 --- a/test/extensions/filters/http/health_check/BUILD +++ b/test/extensions/filters/http/health_check/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/ip_tagging/BUILD b/test/extensions/filters/http/ip_tagging/BUILD index fdfa8d58cc98..7625367f3e62 100644 --- a/test/extensions/filters/http/ip_tagging/BUILD +++ b/test/extensions/filters/http/ip_tagging/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/jwt_authn/BUILD b/test/extensions/filters/http/jwt_authn/BUILD index e8339bdcb473..f19bf5269283 100644 --- a/test/extensions/filters/http/jwt_authn/BUILD +++ b/test/extensions/filters/http/jwt_authn/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", @@ -11,6 +9,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/test/extensions/filters/http/lua/BUILD b/test/extensions/filters/http/lua/BUILD index 93b555322a18..49889a1c90eb 100644 --- a/test/extensions/filters/http/lua/BUILD +++ b/test/extensions/filters/http/lua/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/on_demand/BUILD b/test/extensions/filters/http/on_demand/BUILD index 9a5acca7688f..d9412a137039 100644 --- a/test/extensions/filters/http/on_demand/BUILD +++ b/test/extensions/filters/http/on_demand/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/original_src/BUILD b/test/extensions/filters/http/original_src/BUILD index 18cfcae4e112..411bbe6d25a7 100644 --- a/test/extensions/filters/http/original_src/BUILD +++ b/test/extensions/filters/http/original_src/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/ratelimit/BUILD b/test/extensions/filters/http/ratelimit/BUILD index fe03b1f6eb30..bfa69da7e296 100644 --- a/test/extensions/filters/http/ratelimit/BUILD +++ b/test/extensions/filters/http/ratelimit/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/rbac/BUILD b/test/extensions/filters/http/rbac/BUILD index 6097f22589a8..3ce6b5fd175f 100644 --- a/test/extensions/filters/http/rbac/BUILD +++ b/test/extensions/filters/http/rbac/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -10,6 +8,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/router/BUILD b/test/extensions/filters/http/router/BUILD index e44c981792f3..46aaecbb7ae2 100644 --- a/test/extensions/filters/http/router/BUILD +++ b/test/extensions/filters/http/router/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/squash/BUILD b/test/extensions/filters/http/squash/BUILD index 2954bd98b425..f98a5695d5ad 100644 --- a/test/extensions/filters/http/squash/BUILD +++ b/test/extensions/filters/http/squash/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/http/tap/BUILD b/test/extensions/filters/http/tap/BUILD index 95f895888972..414ce2effd3e 100644 --- a/test/extensions/filters/http/tap/BUILD +++ b/test/extensions/filters/http/tap/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_library", @@ -10,6 +8,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/extensions/filters/listener/http_inspector/BUILD b/test/extensions/filters/listener/http_inspector/BUILD index afb64b5eee2b..944ec4eff0d1 100644 --- a/test/extensions/filters/listener/http_inspector/BUILD +++ b/test/extensions/filters/listener/http_inspector/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/listener/original_dst/BUILD b/test/extensions/filters/listener/original_dst/BUILD index aaed1667cdf1..4c2ad41b41ce 100644 --- a/test/extensions/filters/listener/original_dst/BUILD +++ b/test/extensions/filters/listener/original_dst/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/listener/original_src/BUILD b/test/extensions/filters/listener/original_src/BUILD index 7a62688540fe..1b1806827236 100644 --- a/test/extensions/filters/listener/original_src/BUILD +++ b/test/extensions/filters/listener/original_src/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/listener/proxy_protocol/BUILD b/test/extensions/filters/listener/proxy_protocol/BUILD index f07771bbb91e..1ff78bc0b820 100644 --- a/test/extensions/filters/listener/proxy_protocol/BUILD +++ b/test/extensions/filters/listener/proxy_protocol/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/listener/tls_inspector/BUILD b/test/extensions/filters/listener/tls_inspector/BUILD index 8e2b7360a5ad..bfa8c6ebd18a 100644 --- a/test/extensions/filters/listener/tls_inspector/BUILD +++ b/test/extensions/filters/listener/tls_inspector/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", @@ -12,6 +10,8 @@ load( "envoy_extension_cc_benchmark_binary", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/filters/network/client_ssl_auth/BUILD b/test/extensions/filters/network/client_ssl_auth/BUILD index ffde1a55d3c4..b24854cbce09 100644 --- a/test/extensions/filters/network/client_ssl_auth/BUILD +++ b/test/extensions/filters/network/client_ssl_auth/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/network/common/BUILD b/test/extensions/filters/network/common/BUILD index 246a1c9f8a0d..046af1acac14 100644 --- a/test/extensions/filters/network/common/BUILD +++ b/test/extensions/filters/network/common/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/filters/network/common/redis/BUILD b/test/extensions/filters/network/common/redis/BUILD index a2d076a1b4b9..dffc23954488 100644 --- a/test/extensions/filters/network/common/redis/BUILD +++ b/test/extensions/filters/network/common/redis/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", @@ -8,6 +6,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/extensions/filters/network/direct_response/BUILD b/test/extensions/filters/network/direct_response/BUILD index a828acc3d659..06fa488357ec 100644 --- a/test/extensions/filters/network/direct_response/BUILD +++ b/test/extensions/filters/network/direct_response/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/network/dubbo_proxy/BUILD b/test/extensions/filters/network/dubbo_proxy/BUILD index 00cbebf6780a..20410865388d 100644 --- a/test/extensions/filters/network/dubbo_proxy/BUILD +++ b/test/extensions/filters/network/dubbo_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", @@ -11,6 +9,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/extensions/filters/network/ext_authz/BUILD b/test/extensions/filters/network/ext_authz/BUILD index 4d003eb26dec..6004f220d387 100644 --- a/test/extensions/filters/network/ext_authz/BUILD +++ b/test/extensions/filters/network/ext_authz/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/network/http_connection_manager/BUILD b/test/extensions/filters/network/http_connection_manager/BUILD index ebaaf0038867..1725e4dd9de3 100644 --- a/test/extensions/filters/network/http_connection_manager/BUILD +++ b/test/extensions/filters/network/http_connection_manager/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -10,6 +8,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_proto_library( diff --git a/test/extensions/filters/network/kafka/BUILD b/test/extensions/filters/network/kafka/BUILD index d45e3702b0da..de260c365d7d 100644 --- a/test/extensions/filters/network/kafka/BUILD +++ b/test/extensions/filters/network/kafka/BUILD @@ -1,5 +1,4 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_python//python:defs.bzl", "py_binary") load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_library", @@ -10,6 +9,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/extensions/filters/network/kafka/broker/BUILD b/test/extensions/filters/network/kafka/broker/BUILD index 158c8a7cb27b..da35cc9ea7c4 100644 --- a/test/extensions/filters/network/kafka/broker/BUILD +++ b/test/extensions/filters/network/kafka/broker/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/network/kafka/broker/integration_test/BUILD b/test/extensions/filters/network/kafka/broker/integration_test/BUILD index 14fec8991db5..d82d6b95c011 100644 --- a/test/extensions/filters/network/kafka/broker/integration_test/BUILD +++ b/test/extensions/filters/network/kafka/broker/integration_test/BUILD @@ -1,10 +1,11 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_python//python:defs.bzl", "py_test") load( "//bazel:envoy_build_system.bzl", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() py_test( diff --git a/test/extensions/filters/network/local_ratelimit/BUILD b/test/extensions/filters/network/local_ratelimit/BUILD index 291f6726ddc4..8f11258d9af8 100644 --- a/test/extensions/filters/network/local_ratelimit/BUILD +++ b/test/extensions/filters/network/local_ratelimit/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/network/mongo_proxy/BUILD b/test/extensions/filters/network/mongo_proxy/BUILD index aa836af608c9..07c6cc33cca0 100644 --- a/test/extensions/filters/network/mongo_proxy/BUILD +++ b/test/extensions/filters/network/mongo_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/network/mysql_proxy/BUILD b/test/extensions/filters/network/mysql_proxy/BUILD index 073312b3eff4..17e3c8c204d8 100644 --- a/test/extensions/filters/network/mysql_proxy/BUILD +++ b/test/extensions/filters/network/mysql_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -10,6 +8,8 @@ load( "envoy_extension_cc_test_library", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test_library( diff --git a/test/extensions/filters/network/postgres_proxy/BUILD b/test/extensions/filters/network/postgres_proxy/BUILD index afb0b1415014..0e58a294742b 100644 --- a/test/extensions/filters/network/postgres_proxy/BUILD +++ b/test/extensions/filters/network/postgres_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -10,6 +8,8 @@ load( "envoy_extension_cc_test_library", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test_library( diff --git a/test/extensions/filters/network/ratelimit/BUILD b/test/extensions/filters/network/ratelimit/BUILD index c1905934b4b0..38c2eb7a8512 100644 --- a/test/extensions/filters/network/ratelimit/BUILD +++ b/test/extensions/filters/network/ratelimit/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/network/rbac/BUILD b/test/extensions/filters/network/rbac/BUILD index fb4195d62562..8d4d479cefb0 100644 --- a/test/extensions/filters/network/rbac/BUILD +++ b/test/extensions/filters/network/rbac/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/network/redis_proxy/BUILD b/test/extensions/filters/network/redis_proxy/BUILD index 0697c8c39d90..749e93663fea 100644 --- a/test/extensions/filters/network/redis_proxy/BUILD +++ b/test/extensions/filters/network/redis_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", @@ -12,6 +10,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/network/rocketmq_proxy/BUILD b/test/extensions/filters/network/rocketmq_proxy/BUILD index 2e719d6b145b..c5cf5e5b34f0 100644 --- a/test/extensions/filters/network/rocketmq_proxy/BUILD +++ b/test/extensions/filters/network/rocketmq_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", @@ -11,6 +9,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/extensions/filters/network/sni_cluster/BUILD b/test/extensions/filters/network/sni_cluster/BUILD index a521d1f07145..3bc852b873d7 100644 --- a/test/extensions/filters/network/sni_cluster/BUILD +++ b/test/extensions/filters/network/sni_cluster/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/network/sni_dynamic_forward_proxy/BUILD b/test/extensions/filters/network/sni_dynamic_forward_proxy/BUILD index 059a4a0ef6ff..c9981ba5f70c 100644 --- a/test/extensions/filters/network/sni_dynamic_forward_proxy/BUILD +++ b/test/extensions/filters/network/sni_dynamic_forward_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/network/tcp_proxy/BUILD b/test/extensions/filters/network/tcp_proxy/BUILD index 318a2aa9b78a..73c4717e8ef3 100644 --- a/test/extensions/filters/network/tcp_proxy/BUILD +++ b/test/extensions/filters/network/tcp_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/network/thrift_proxy/BUILD b/test/extensions/filters/network/thrift_proxy/BUILD index c07318e6cb9a..9428df5d84e7 100644 --- a/test/extensions/filters/network/thrift_proxy/BUILD +++ b/test/extensions/filters/network/thrift_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -11,6 +9,8 @@ load( "envoy_extension_cc_test_library", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_mock( diff --git a/test/extensions/filters/network/thrift_proxy/driver/BUILD b/test/extensions/filters/network/thrift_proxy/driver/BUILD index b0461509c7a1..4e5d0f47d1d4 100644 --- a/test/extensions/filters/network/thrift_proxy/driver/BUILD +++ b/test/extensions/filters/network/thrift_proxy/driver/BUILD @@ -1,7 +1,8 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_python//python:defs.bzl", "py_binary") load("//bazel:envoy_build_system.bzl", "envoy_package") +licenses(["notice"]) # Apache 2 + envoy_package() filegroup( diff --git a/test/extensions/filters/network/thrift_proxy/driver/fbthrift/BUILD b/test/extensions/filters/network/thrift_proxy/driver/fbthrift/BUILD index a1b33006f10f..82b251aeac77 100644 --- a/test/extensions/filters/network/thrift_proxy/driver/fbthrift/BUILD +++ b/test/extensions/filters/network/thrift_proxy/driver/fbthrift/BUILD @@ -1,7 +1,8 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_python//python:defs.bzl", "py_library") load("//bazel:envoy_build_system.bzl", "envoy_package") +licenses(["notice"]) # Apache 2 + envoy_package() py_library( diff --git a/test/extensions/filters/network/thrift_proxy/driver/finagle/BUILD b/test/extensions/filters/network/thrift_proxy/driver/finagle/BUILD index 71fa29d64063..e2f159ae992d 100644 --- a/test/extensions/filters/network/thrift_proxy/driver/finagle/BUILD +++ b/test/extensions/filters/network/thrift_proxy/driver/finagle/BUILD @@ -1,7 +1,8 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_python//python:defs.bzl", "py_library") load("//bazel:envoy_build_system.bzl", "envoy_package") +licenses(["notice"]) # Apache 2 + envoy_package() py_library( diff --git a/test/extensions/filters/network/thrift_proxy/driver/generated/example/BUILD b/test/extensions/filters/network/thrift_proxy/driver/generated/example/BUILD index 6c9595737b16..d3a7029ab41d 100644 --- a/test/extensions/filters/network/thrift_proxy/driver/generated/example/BUILD +++ b/test/extensions/filters/network/thrift_proxy/driver/generated/example/BUILD @@ -1,7 +1,8 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_python//python:defs.bzl", "py_library") load("//bazel:envoy_build_system.bzl", "envoy_package") +licenses(["notice"]) # Apache 2 + envoy_package() py_library( diff --git a/test/extensions/filters/network/thrift_proxy/filters/ratelimit/BUILD b/test/extensions/filters/network/thrift_proxy/filters/ratelimit/BUILD index 06542bc5cbb5..69b40d35e0e7 100644 --- a/test/extensions/filters/network/thrift_proxy/filters/ratelimit/BUILD +++ b/test/extensions/filters/network/thrift_proxy/filters/ratelimit/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/network/zookeeper_proxy/BUILD b/test/extensions/filters/network/zookeeper_proxy/BUILD index d4d9cb5cef8c..ec24601e81b9 100644 --- a/test/extensions/filters/network/zookeeper_proxy/BUILD +++ b/test/extensions/filters/network/zookeeper_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/filters/udp/dns_filter/BUILD b/test/extensions/filters/udp/dns_filter/BUILD index e4a66a2fcf10..08455411d5ad 100644 --- a/test/extensions/filters/udp/dns_filter/BUILD +++ b/test/extensions/filters/udp/dns_filter/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_fuzz_test", @@ -11,6 +9,8 @@ load( "envoy_extension_cc_test_library", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test_library( diff --git a/test/extensions/filters/udp/udp_proxy/BUILD b/test/extensions/filters/udp/udp_proxy/BUILD index 480131efc548..9205ec9237a7 100644 --- a/test/extensions/filters/udp/udp_proxy/BUILD +++ b/test/extensions/filters/udp/udp_proxy/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/grpc_credentials/aws_iam/BUILD b/test/extensions/grpc_credentials/aws_iam/BUILD index 656bfd76357c..0796f78a871c 100644 --- a/test/extensions/grpc_credentials/aws_iam/BUILD +++ b/test/extensions/grpc_credentials/aws_iam/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -7,6 +5,8 @@ load( "envoy_select_google_grpc", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/grpc_credentials/file_based_metadata/BUILD b/test/extensions/grpc_credentials/file_based_metadata/BUILD index ccb2fd8263b3..53cff427b2fe 100644 --- a/test/extensions/grpc_credentials/file_based_metadata/BUILD +++ b/test/extensions/grpc_credentials/file_based_metadata/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -7,6 +5,8 @@ load( "envoy_select_google_grpc", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/health_checkers/redis/BUILD b/test/extensions/health_checkers/redis/BUILD index 73eafe90384a..aa4f80e21330 100644 --- a/test/extensions/health_checkers/redis/BUILD +++ b/test/extensions/health_checkers/redis/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/internal_redirect/previous_routes/BUILD b/test/extensions/internal_redirect/previous_routes/BUILD index 8425dec9126c..5ec2358246a0 100644 --- a/test/extensions/internal_redirect/previous_routes/BUILD +++ b/test/extensions/internal_redirect/previous_routes/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/quic_listeners/quiche/BUILD b/test/extensions/quic_listeners/quiche/BUILD index 43347b72524d..8301bf42aa88 100644 --- a/test/extensions/quic_listeners/quiche/BUILD +++ b/test/extensions/quic_listeners/quiche/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/quic_listeners/quiche/integration/BUILD b/test/extensions/quic_listeners/quiche/integration/BUILD index ec7a3cd5dcfa..bb473cd6effc 100644 --- a/test/extensions/quic_listeners/quiche/integration/BUILD +++ b/test/extensions/quic_listeners/quiche/integration/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/quic_listeners/quiche/platform/BUILD b/test/extensions/quic_listeners/quiche/platform/BUILD index f48ced9263f2..d43071a61163 100644 --- a/test/extensions/quic_listeners/quiche/platform/BUILD +++ b/test/extensions/quic_listeners/quiche/platform/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/resource_monitors/fixed_heap/BUILD b/test/extensions/resource_monitors/fixed_heap/BUILD index 4f8594bbe4ea..2d28542abde3 100644 --- a/test/extensions/resource_monitors/fixed_heap/BUILD +++ b/test/extensions/resource_monitors/fixed_heap/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/resource_monitors/injected_resource/BUILD b/test/extensions/resource_monitors/injected_resource/BUILD index e15aa3821a7a..e8f32dc41060 100644 --- a/test/extensions/resource_monitors/injected_resource/BUILD +++ b/test/extensions/resource_monitors/injected_resource/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -10,6 +8,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/retry/host/omit_canary_hosts/BUILD b/test/extensions/retry/host/omit_canary_hosts/BUILD index 605fc111a64c..98d0b8e0d823 100644 --- a/test/extensions/retry/host/omit_canary_hosts/BUILD +++ b/test/extensions/retry/host/omit_canary_hosts/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/retry/host/omit_host_metadata/BUILD b/test/extensions/retry/host/omit_host_metadata/BUILD index c219d6695b29..37030ee17c44 100644 --- a/test/extensions/retry/host/omit_host_metadata/BUILD +++ b/test/extensions/retry/host/omit_host_metadata/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/retry/host/previous_hosts/BUILD b/test/extensions/retry/host/previous_hosts/BUILD index 961c3897038f..308fa11445d8 100644 --- a/test/extensions/retry/host/previous_hosts/BUILD +++ b/test/extensions/retry/host/previous_hosts/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/retry/priority/previous_priorities/BUILD b/test/extensions/retry/priority/previous_priorities/BUILD index 712f9874b54c..f06784b4b7a3 100644 --- a/test/extensions/retry/priority/previous_priorities/BUILD +++ b/test/extensions/retry/priority/previous_priorities/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/stats_sinks/common/statsd/BUILD b/test/extensions/stats_sinks/common/statsd/BUILD index 93d7505ab94c..49afc25b4e94 100644 --- a/test/extensions/stats_sinks/common/statsd/BUILD +++ b/test/extensions/stats_sinks/common/statsd/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/stats_sinks/dog_statsd/BUILD b/test/extensions/stats_sinks/dog_statsd/BUILD index 003c7853fdda..8c909f5d54f0 100644 --- a/test/extensions/stats_sinks/dog_statsd/BUILD +++ b/test/extensions/stats_sinks/dog_statsd/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/stats_sinks/hystrix/BUILD b/test/extensions/stats_sinks/hystrix/BUILD index 36f35b971491..093fa1f1d516 100644 --- a/test/extensions/stats_sinks/hystrix/BUILD +++ b/test/extensions/stats_sinks/hystrix/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/stats_sinks/metrics_service/BUILD b/test/extensions/stats_sinks/metrics_service/BUILD index ae60b006f1e2..9cf530605be0 100644 --- a/test/extensions/stats_sinks/metrics_service/BUILD +++ b/test/extensions/stats_sinks/metrics_service/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/stats_sinks/statsd/BUILD b/test/extensions/stats_sinks/statsd/BUILD index c081621d7403..0b21cee0f5c3 100644 --- a/test/extensions/stats_sinks/statsd/BUILD +++ b/test/extensions/stats_sinks/statsd/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/tracers/common/ot/BUILD b/test/extensions/tracers/common/ot/BUILD index 76fd9d8b1378..3e56002a89a1 100644 --- a/test/extensions/tracers/common/ot/BUILD +++ b/test/extensions/tracers/common/ot/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/tracers/datadog/BUILD b/test/extensions/tracers/datadog/BUILD index 1e6b94c6e0f0..f362c834eb39 100644 --- a/test/extensions/tracers/datadog/BUILD +++ b/test/extensions/tracers/datadog/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/tracers/dynamic_ot/BUILD b/test/extensions/tracers/dynamic_ot/BUILD index 4037befe21f9..48e8d4a97c67 100644 --- a/test/extensions/tracers/dynamic_ot/BUILD +++ b/test/extensions/tracers/dynamic_ot/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/tracers/lightstep/BUILD b/test/extensions/tracers/lightstep/BUILD index 40815b572d75..86849c5f84e0 100644 --- a/test/extensions/tracers/lightstep/BUILD +++ b/test/extensions/tracers/lightstep/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/tracers/opencensus/BUILD b/test/extensions/tracers/opencensus/BUILD index 9aa809b29f8d..abdaa5fc7d8e 100644 --- a/test/extensions/tracers/opencensus/BUILD +++ b/test/extensions/tracers/opencensus/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/tracers/xray/BUILD b/test/extensions/tracers/xray/BUILD index 8d1d57c436be..6ebfdf8071d0 100644 --- a/test/extensions/tracers/xray/BUILD +++ b/test/extensions/tracers/xray/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_fuzz_test", @@ -10,6 +8,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/tracers/zipkin/BUILD b/test/extensions/tracers/zipkin/BUILD index 385c4f194759..08da01bfa49b 100644 --- a/test/extensions/tracers/zipkin/BUILD +++ b/test/extensions/tracers/zipkin/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/transport_sockets/alts/BUILD b/test/extensions/transport_sockets/alts/BUILD index ce1deb5e0c4f..d1232d178908 100644 --- a/test/extensions/transport_sockets/alts/BUILD +++ b/test/extensions/transport_sockets/alts/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -10,6 +8,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/transport_sockets/tap/BUILD b/test/extensions/transport_sockets/tap/BUILD index 1aaba1cdb5d5..be4dd9ba9c95 100644 --- a/test/extensions/transport_sockets/tap/BUILD +++ b/test/extensions/transport_sockets/tap/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -9,6 +7,8 @@ load( "envoy_extension_cc_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_extension_cc_test( diff --git a/test/extensions/transport_sockets/tls/BUILD b/test/extensions/transport_sockets/tls/BUILD index bc1b9b9cbf0f..2e2586354fb9 100644 --- a/test/extensions/transport_sockets/tls/BUILD +++ b/test/extensions/transport_sockets/tls/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/transport_sockets/tls/integration/BUILD b/test/extensions/transport_sockets/tls/integration/BUILD index 2f806978c8c6..4425448c624f 100644 --- a/test/extensions/transport_sockets/tls/integration/BUILD +++ b/test/extensions/transport_sockets/tls/integration/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/extensions/transport_sockets/tls/test_data/BUILD b/test/extensions/transport_sockets/tls/test_data/BUILD index 2397d1c8f633..e37742552d78 100644 --- a/test/extensions/transport_sockets/tls/test_data/BUILD +++ b/test/extensions/transport_sockets/tls/test_data/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() filegroup( diff --git a/test/fuzz/BUILD b/test/fuzz/BUILD index d46ae39a51b3..35bd8e0ac197 100644 --- a/test/fuzz/BUILD +++ b/test/fuzz/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_library", @@ -7,6 +5,8 @@ load( "envoy_proto_library", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_proto_library( diff --git a/test/integration/BUILD b/test/integration/BUILD index bcc738c0cfb3..98661cd8ee99 100644 --- a/test/integration/BUILD +++ b/test/integration/BUILD @@ -1,5 +1,4 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_python//python:defs.bzl", "py_binary") load( "//bazel:envoy_build_system.bzl", "envoy_cc_fuzz_test", @@ -11,6 +10,8 @@ load( "envoy_sh_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/integration/clusters/BUILD b/test/integration/clusters/BUILD index f7c33d4be98a..97b137eb75f7 100644 --- a/test/integration/clusters/BUILD +++ b/test/integration/clusters/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_library", @@ -7,6 +5,8 @@ load( "envoy_proto_library", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/integration/filters/BUILD b/test/integration/filters/BUILD index 950370da9e70..516b02f8c100 100644 --- a/test/integration/filters/BUILD +++ b/test/integration/filters/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/mocks/BUILD b/test/mocks/BUILD index 29ef00661510..3b4e8e65bcd0 100644 --- a/test/mocks/BUILD +++ b/test/mocks/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/mocks/access_log/BUILD b/test/mocks/access_log/BUILD index 58bbae8a0aa7..6e2ad4141fec 100644 --- a/test/mocks/access_log/BUILD +++ b/test/mocks/access_log/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/api/BUILD b/test/mocks/api/BUILD index 491bef01dadb..e4d44c573e55 100644 --- a/test/mocks/api/BUILD +++ b/test/mocks/api/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", @@ -7,6 +5,8 @@ load( "envoy_select_hot_restart", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/buffer/BUILD b/test/mocks/buffer/BUILD index 9d9634528ae7..38d61c302cf4 100644 --- a/test/mocks/buffer/BUILD +++ b/test/mocks/buffer/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/compression/compressor/BUILD b/test/mocks/compression/compressor/BUILD index e598f5cc5cf5..855752e06a41 100644 --- a/test/mocks/compression/compressor/BUILD +++ b/test/mocks/compression/compressor/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/compression/decompressor/BUILD b/test/mocks/compression/decompressor/BUILD index 3e4e605cef52..5e308cef1ded 100644 --- a/test/mocks/compression/decompressor/BUILD +++ b/test/mocks/compression/decompressor/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/config/BUILD b/test/mocks/config/BUILD index c9756f13893a..6df51d8b98c6 100644 --- a/test/mocks/config/BUILD +++ b/test/mocks/config/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/event/BUILD b/test/mocks/event/BUILD index c807c41d0b6a..8a27b1804d07 100644 --- a/test/mocks/event/BUILD +++ b/test/mocks/event/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/filesystem/BUILD b/test/mocks/filesystem/BUILD index edb14369c6b3..96cbe7876b31 100644 --- a/test/mocks/filesystem/BUILD +++ b/test/mocks/filesystem/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/grpc/BUILD b/test/mocks/grpc/BUILD index 436363c08203..972cba77fbe1 100644 --- a/test/mocks/grpc/BUILD +++ b/test/mocks/grpc/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/http/BUILD b/test/mocks/http/BUILD index 34227d7ac58b..65fdb6ebc4f5 100644 --- a/test/mocks/http/BUILD +++ b/test/mocks/http/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/init/BUILD b/test/mocks/init/BUILD index 5aa9f74bacd3..d2969531ecb6 100644 --- a/test/mocks/init/BUILD +++ b/test/mocks/init/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/local_info/BUILD b/test/mocks/local_info/BUILD index b7cd52aa9ff0..9ae293dfc9a6 100644 --- a/test/mocks/local_info/BUILD +++ b/test/mocks/local_info/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/network/BUILD b/test/mocks/network/BUILD index 877861539c9d..020e4b6db404 100644 --- a/test/mocks/network/BUILD +++ b/test/mocks/network/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/protobuf/BUILD b/test/mocks/protobuf/BUILD index 5d7637475f67..2db80c5e3173 100644 --- a/test/mocks/protobuf/BUILD +++ b/test/mocks/protobuf/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/ratelimit/BUILD b/test/mocks/ratelimit/BUILD index 9aa235577e39..db30620b1edd 100644 --- a/test/mocks/ratelimit/BUILD +++ b/test/mocks/ratelimit/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/redis/BUILD b/test/mocks/redis/BUILD index d97ea0dbaab9..6ff8990aae05 100644 --- a/test/mocks/redis/BUILD +++ b/test/mocks/redis/BUILD @@ -1,8 +1,8 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() diff --git a/test/mocks/router/BUILD b/test/mocks/router/BUILD index db572a1f92a7..282a60b154f8 100644 --- a/test/mocks/router/BUILD +++ b/test/mocks/router/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/runtime/BUILD b/test/mocks/runtime/BUILD index 7d899cb90c58..f68b4dde2ef7 100644 --- a/test/mocks/runtime/BUILD +++ b/test/mocks/runtime/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/secret/BUILD b/test/mocks/secret/BUILD index 313a56038cde..92a80718db01 100644 --- a/test/mocks/secret/BUILD +++ b/test/mocks/secret/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/server/BUILD b/test/mocks/server/BUILD index 4d85cd8496ab..067c98d846f6 100644 --- a/test/mocks/server/BUILD +++ b/test/mocks/server/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/ssl/BUILD b/test/mocks/ssl/BUILD index 7141bb5c8fc1..e79694f5224f 100644 --- a/test/mocks/ssl/BUILD +++ b/test/mocks/ssl/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/stats/BUILD b/test/mocks/stats/BUILD index 1880b79a93cb..6d4ddd19a050 100644 --- a/test/mocks/stats/BUILD +++ b/test/mocks/stats/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/stream_info/BUILD b/test/mocks/stream_info/BUILD index 6d33901f6cf1..da45abf717ce 100644 --- a/test/mocks/stream_info/BUILD +++ b/test/mocks/stream_info/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/tcp/BUILD b/test/mocks/tcp/BUILD index 8634b86e9c5c..2ac39f512288 100644 --- a/test/mocks/tcp/BUILD +++ b/test/mocks/tcp/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/thread_local/BUILD b/test/mocks/thread_local/BUILD index bc65c8da86c9..e05b8f6f4b96 100644 --- a/test/mocks/thread_local/BUILD +++ b/test/mocks/thread_local/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/tracing/BUILD b/test/mocks/tracing/BUILD index a5ef26bce3ff..3f4eaf881d4d 100644 --- a/test/mocks/tracing/BUILD +++ b/test/mocks/tracing/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/mocks/upstream/BUILD b/test/mocks/upstream/BUILD index 8c4ca0d28c68..6e210478aa6a 100644 --- a/test/mocks/upstream/BUILD +++ b/test/mocks/upstream/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_mock", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_mock( diff --git a/test/proto/BUILD b/test/proto/BUILD index 3e058be5ec2c..f1ab09c62349 100644 --- a/test/proto/BUILD +++ b/test/proto/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", @@ -7,6 +5,8 @@ load( "envoy_proto_library", ) +licenses(["notice"]) # Apache 2 + envoy_package() exports_files(["bookstore.proto"]) diff --git a/test/server/BUILD b/test/server/BUILD index 1fe019224c2c..d6e7b23cc8cb 100644 --- a/test/server/BUILD +++ b/test/server/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_benchmark_test", @@ -13,6 +11,8 @@ load( load("//source/extensions:all_extensions.bzl", "envoy_all_extensions") load("//bazel:repositories.bzl", "PPC_SKIP_TARGETS", "WINDOWS_SKIP_TARGETS") +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/server/admin/BUILD b/test/server/admin/BUILD index 07045a5b3868..75e3fc35f8e5 100644 --- a/test/server/admin/BUILD +++ b/test/server/admin/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/server/config_validation/BUILD b/test/server/config_validation/BUILD index 8c466c9b30cd..19942cb6d89e 100644 --- a/test/server/config_validation/BUILD +++ b/test/server/config_validation/BUILD @@ -1,9 +1,9 @@ -licenses(["notice"]) # Apache 2 - load("//bazel:envoy_build_system.bzl", "envoy_cc_fuzz_test", "envoy_cc_test", "envoy_package") load("//source/extensions:all_extensions.bzl", "envoy_all_extensions") load("//bazel:repositories.bzl", "PPC_SKIP_TARGETS", "WINDOWS_SKIP_TARGETS") +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/test_common/BUILD b/test/test_common/BUILD index 33f404d67e06..967cfe90f0c8 100644 --- a/test/test_common/BUILD +++ b/test/test_common/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_basic_cc_library", @@ -9,6 +7,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_basic_cc_library( diff --git a/test/tools/config_load_check/BUILD b/test/tools/config_load_check/BUILD index da23f11daedf..68e744520fd6 100644 --- a/test/tools/config_load_check/BUILD +++ b/test/tools/config_load_check/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_binary", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_library( diff --git a/test/tools/router_check/BUILD b/test/tools/router_check/BUILD index 874fff81929e..610e09311027 100644 --- a/test/tools/router_check/BUILD +++ b/test/tools/router_check/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_binary", @@ -8,6 +6,8 @@ load( "envoy_proto_library", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_binary( diff --git a/test/tools/router_check/test/BUILD b/test/tools/router_check/test/BUILD index fbe2bfe9b0c7..3e8d50e06b8f 100644 --- a/test/tools/router_check/test/BUILD +++ b/test/tools/router_check/test/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_package", "envoy_sh_test", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_sh_test( diff --git a/test/tools/schema_validator/BUILD b/test/tools/schema_validator/BUILD index 5bfa78514ffc..c0d198f6f5d5 100644 --- a/test/tools/schema_validator/BUILD +++ b/test/tools/schema_validator/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_binary", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_binary( diff --git a/test/tools/type_whisperer/BUILD b/test/tools/type_whisperer/BUILD index 5d2787128058..9e23abf89d39 100644 --- a/test/tools/type_whisperer/BUILD +++ b/test/tools/type_whisperer/BUILD @@ -1,7 +1,7 @@ -licenses(["notice"]) # Apache 2 - load("//bazel:envoy_build_system.bzl", "envoy_cc_test", "envoy_package") +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test( diff --git a/test/tools/wee8_compile/BUILD b/test/tools/wee8_compile/BUILD index 9c363c7d9275..d1184b071750 100644 --- a/test/tools/wee8_compile/BUILD +++ b/test/tools/wee8_compile/BUILD @@ -1,5 +1,3 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_test_binary", @@ -7,6 +5,8 @@ load( "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_test_binary( diff --git a/tools/BUILD b/tools/BUILD index fbd9abfc774b..a3313f01becc 100644 --- a/tools/BUILD +++ b/tools/BUILD @@ -1,5 +1,4 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_python//python:defs.bzl", "py_library") load( "//bazel:envoy_build_system.bzl", "envoy_cc_binary", @@ -8,6 +7,8 @@ load( "envoy_py_test_binary", ) +licenses(["notice"]) # Apache 2 + envoy_package() exports_files([ diff --git a/tools/api_boost/testdata/BUILD b/tools/api_boost/testdata/BUILD index 17f7233955bc..148b1b5c4787 100644 --- a/tools/api_boost/testdata/BUILD +++ b/tools/api_boost/testdata/BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_library( diff --git a/tools/api_proto_plugin/BUILD b/tools/api_proto_plugin/BUILD index 5c6c535a4a88..788b6d6e4295 100644 --- a/tools/api_proto_plugin/BUILD +++ b/tools/api_proto_plugin/BUILD @@ -1,9 +1,9 @@ -licenses(["notice"]) # Apache 2 - load("@bazel_skylib//rules:common_settings.bzl", "string_flag") load("@rules_python//python:defs.bzl", "py_library") load("//tools/type_whisperer:type_database.bzl", "type_database") +licenses(["notice"]) # Apache 2 + py_library( name = "api_proto_plugin", srcs = [ diff --git a/tools/api_proto_plugin/plugin.bzl b/tools/api_proto_plugin/plugin.bzl index 95568e47123a..0b19fb60031f 100644 --- a/tools/api_proto_plugin/plugin.bzl +++ b/tools/api_proto_plugin/plugin.bzl @@ -36,7 +36,7 @@ def api_proto_plugin_impl(target, ctx, output_group, mnemonic, output_suffixes): # extractions. See https://github.com/bazelbuild/bazel/issues/3971. import_paths = [] for f in target[ProtoInfo].transitive_sources.to_list(): - import_paths += ["{}={}".format(_path_ignoring_repository(f), f.path)] + import_paths.append("{}={}".format(_path_ignoring_repository(f), f.path)) # The outputs live in the ctx.label's package root. We add some additional # path information to match with protoc's notion of path relative locations. @@ -56,9 +56,9 @@ def api_proto_plugin_impl(target, ctx, output_group, mnemonic, output_suffixes): inputs = depset(transitive = [inputs] + [ctx.attr._type_db.files]) if len(ctx.attr._type_db.files.to_list()) != 1: fail("{} must have one type database file".format(ctx.attr._type_db)) - args += ["--api_proto_plugin_opt=type_db_path=" + ctx.attr._type_db.files.to_list()[0].path] + args.append("--api_proto_plugin_opt=type_db_path=" + ctx.attr._type_db.files.to_list()[0].path) if hasattr(ctx.attr, "_extra_args"): - args += ["--api_proto_plugin_opt=extra_args=" + ctx.attr._extra_args[BuildSettingInfo].value] + args.append("--api_proto_plugin_opt=extra_args=" + ctx.attr._extra_args[BuildSettingInfo].value) args += [src.path for src in target[ProtoInfo].direct_sources] env = {} diff --git a/tools/clang_tools/support/clang_tools.bzl b/tools/clang_tools/support/clang_tools.bzl index ece24fc87231..a738fa57f28d 100644 --- a/tools/clang_tools/support/clang_tools.bzl +++ b/tools/clang_tools/support/clang_tools.bzl @@ -1,5 +1,7 @@ +load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test") + def clang_tools_cc_binary(name, copts = [], tags = [], deps = [], **kwargs): - native.cc_binary( + cc_binary( name = name, copts = copts + [ "-fno-exceptions", @@ -11,13 +13,13 @@ def clang_tools_cc_binary(name, copts = [], tags = [], deps = [], **kwargs): ) def clang_tools_cc_library(name, **kwargs): - native.cc_library( + cc_library( name = name, **kwargs ) def clang_tools_cc_test(name, deps = [], **kwargs): - native.cc_test( + cc_test( name = name, deps = deps + ["@com_google_googletest//:gtest_main"], **kwargs diff --git a/tools/code_format/check_format.py b/tools/code_format/check_format.py index 2a82d7f93ffc..295e969661d0 100755 --- a/tools/code_format/check_format.py +++ b/tools/code_format/check_format.py @@ -727,7 +727,7 @@ def fixBuildPath(file_path): if os.system("%s %s %s" % (ENVOY_BUILD_FIXER_PATH, file_path, file_path)) != 0: error_messages += ["envoy_build_fixer rewrite failed for file: %s" % file_path] - if os.system("%s -mode=fix %s" % (BUILDIFIER_PATH, file_path)) != 0: + if os.system("%s -lint=fix -mode=fix %s" % (BUILDIFIER_PATH, file_path)) != 0: error_messages += ["buildifier rewrite failed for file: %s" % file_path] return error_messages diff --git a/tools/code_format/check_format_test_helper.py b/tools/code_format/check_format_test_helper.py index 67276235adce..e00144812e40 100755 --- a/tools/code_format/check_format_test_helper.py +++ b/tools/code_format/check_format_test_helper.py @@ -61,12 +61,12 @@ def fixFileExpectingSuccess(file, extra_input_files=None): command, infile, outfile, status, stdout = fixFileHelper(file, extra_input_files=extra_input_files) if status != 0: - print("FAILED:") + print("FAILED: " + infile) emitStdoutAsError(stdout) return 1 status, stdout, stderr = runCommand('diff ' + outfile + ' ' + infile + '.gold') if status != 0: - print("FAILED:") + print("FAILED: " + infile) emitStdoutAsError(stdout + stderr) return 1 return 0 diff --git a/tools/code_format/envoy_build_fixer.py b/tools/code_format/envoy_build_fixer.py index 865e9fffd48d..51f7d0fb866c 100755 --- a/tools/code_format/envoy_build_fixer.py +++ b/tools/code_format/envoy_build_fixer.py @@ -19,6 +19,9 @@ # Where does Buildozer live? BUILDOZER_PATH = paths.getBuildozer() +# Where does Buildifier live? +BUILDIFIER_PATH = paths.getBuildifier() + # Canonical Envoy license. LICENSE_STRING = 'licenses(["notice"]) # Apache 2\n\n' @@ -89,14 +92,15 @@ def FixPackageAndLicense(contents): return contents -# Remove trailing blank lines, unnecessary double blank lines. -def FixEmptyLines(contents): - return re.sub('\n\s*$', '\n', re.sub('\n\n\n', '\n\n', contents)) - - -# Misc. Buildozer cleanups. -def FixBuildozerCleanups(contents): - return RunBuildozer([('fix unusedLoads', '__pkg__')], contents) +# Run Buildifier commands on a string with lint mode. +def BuildifierLint(contents): + r = subprocess.run([BUILDIFIER_PATH, '-lint=fix', '-mode=fix', '-type=build'], + input=contents.encode(), + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) + if r.returncode != 0: + raise EnvoyBuildFixerError('buildozer execution failed: %s' % r) + return r.stdout.decode('utf-8') # Find all the API headers in a C++ source file. @@ -170,9 +174,8 @@ def FixBuild(path): contents = f.read() xforms = [ FixPackageAndLicense, - FixEmptyLines, functools.partial(FixApiDeps, path), - FixBuildozerCleanups, + BuildifierLint, ] for xform in xforms: contents = xform(contents) diff --git a/tools/config_validation/BUILD b/tools/config_validation/BUILD index 99d15311d6f0..5ca3d0ef9a4a 100644 --- a/tools/config_validation/BUILD +++ b/tools/config_validation/BUILD @@ -1,7 +1,8 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_python//python:defs.bzl", "py_binary") load("@config_validation_pip3//:requirements.bzl", "requirement") +licenses(["notice"]) # Apache 2 + py_binary( name = "validate_fragment", srcs = ["validate_fragment.py"], diff --git a/tools/proto_format/active_protos_gen.py b/tools/proto_format/active_protos_gen.py index 37b871d93f2e..bd29cc197d7d 100755 --- a/tools/proto_format/active_protos_gen.py +++ b/tools/proto_format/active_protos_gen.py @@ -11,10 +11,10 @@ BUILD_FILE_TEMPLATE = string.Template( """# DO NOT EDIT. This file is generated by tools/proto_format/active_protos_gen.py. -licenses(["notice"]) # Apache 2 - load("@rules_proto//proto:defs.bzl", "proto_library") +licenses(["notice"]) # Apache 2 + # This tracks active development versions of protos. proto_library( name = "active_protos", diff --git a/tools/protodoc/BUILD b/tools/protodoc/BUILD index 45480b086306..256316f2a18c 100644 --- a/tools/protodoc/BUILD +++ b/tools/protodoc/BUILD @@ -1,7 +1,8 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_python//python:defs.bzl", "py_binary") load("@protodoc_pip3//:requirements.bzl", "requirement") +licenses(["notice"]) # Apache 2 + py_binary( name = "generate_empty", srcs = ["generate_empty.py"], diff --git a/tools/protoxform/BUILD b/tools/protoxform/BUILD index 631a4f9585e4..fa15105ca927 100644 --- a/tools/protoxform/BUILD +++ b/tools/protoxform/BUILD @@ -1,3 +1,5 @@ +load("@rules_python//python:defs.bzl", "py_binary", "py_test") + licenses(["notice"]) # Apache 2 py_binary( diff --git a/tools/testdata/check_format/add_envoy_package.BUILD.gold b/tools/testdata/check_format/add_envoy_package.BUILD.gold index 69f20390a6f7..01852a416018 100644 --- a/tools/testdata/check_format/add_envoy_package.BUILD.gold +++ b/tools/testdata/check_format/add_envoy_package.BUILD.gold @@ -1,7 +1,7 @@ -licenses(["notice"]) # Apache 2 - load("//bazel:envoy_build_system.bzl", "envoy_package") +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_binary( diff --git a/tools/testdata/check_format/bad_envoy_build_sys_ref.BUILD b/tools/testdata/check_format/bad_envoy_build_sys_ref.BUILD index 0ffd61847fbb..f1381ba24ace 100644 --- a/tools/testdata/check_format/bad_envoy_build_sys_ref.BUILD +++ b/tools/testdata/check_format/bad_envoy_build_sys_ref.BUILD @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "@envoy//bazel:envoy_build_system.bzl", "envoy_cc_binary", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_binary( diff --git a/tools/testdata/check_format/bad_envoy_build_sys_ref.BUILD.gold b/tools/testdata/check_format/bad_envoy_build_sys_ref.BUILD.gold index 218f4d656df3..f2dba3a21d96 100644 --- a/tools/testdata/check_format/bad_envoy_build_sys_ref.BUILD.gold +++ b/tools/testdata/check_format/bad_envoy_build_sys_ref.BUILD.gold @@ -1,11 +1,11 @@ -licenses(["notice"]) # Apache 2 - load( "//bazel:envoy_build_system.bzl", "envoy_cc_binary", "envoy_package", ) +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_binary( diff --git a/tools/testdata/check_format/canonical_api_deps.BUILD b/tools/testdata/check_format/canonical_api_deps.BUILD index e342c9cf9b24..3bf457143107 100644 --- a/tools/testdata/check_format/canonical_api_deps.BUILD +++ b/tools/testdata/check_format/canonical_api_deps.BUILD @@ -1,7 +1,7 @@ -licenses(["notice"]) # Apache 2 - load("//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package") +licenses(["notice"]) # Apache 2 + envoy_package() # Deps can be inferred, irrelevant deps are removed. diff --git a/tools/testdata/check_format/canonical_api_deps.BUILD.gold b/tools/testdata/check_format/canonical_api_deps.BUILD.gold index 759f31e1cb42..69bfe69e0d49 100644 --- a/tools/testdata/check_format/canonical_api_deps.BUILD.gold +++ b/tools/testdata/check_format/canonical_api_deps.BUILD.gold @@ -1,7 +1,7 @@ -licenses(["notice"]) # Apache 2 - load("//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package") +licenses(["notice"]) # Apache 2 + envoy_package() # Deps can be inferred, irrelevant deps are removed. diff --git a/tools/testdata/check_format/canonical_spacing.BUILD.gold b/tools/testdata/check_format/canonical_spacing.BUILD.gold index 69f20390a6f7..01852a416018 100644 --- a/tools/testdata/check_format/canonical_spacing.BUILD.gold +++ b/tools/testdata/check_format/canonical_spacing.BUILD.gold @@ -1,7 +1,7 @@ -licenses(["notice"]) # Apache 2 - load("//bazel:envoy_build_system.bzl", "envoy_package") +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_binary( diff --git a/tools/testdata/check_format/remove_unused_loads.BUILD b/tools/testdata/check_format/remove_unused_loads.BUILD index 586df2dc5632..6a7bcfdc23b5 100644 --- a/tools/testdata/check_format/remove_unused_loads.BUILD +++ b/tools/testdata/check_format/remove_unused_loads.BUILD @@ -1,8 +1,8 @@ -licenses(["notice"]) # Apache 2 - load("//foo.bzl", "bar") load("//bazel:envoy_build_system.bzl", "envoy_package", "envoy_cc_library") +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_binary( diff --git a/tools/testdata/check_format/remove_unused_loads.BUILD.gold b/tools/testdata/check_format/remove_unused_loads.BUILD.gold index 69f20390a6f7..01852a416018 100644 --- a/tools/testdata/check_format/remove_unused_loads.BUILD.gold +++ b/tools/testdata/check_format/remove_unused_loads.BUILD.gold @@ -1,7 +1,7 @@ -licenses(["notice"]) # Apache 2 - load("//bazel:envoy_build_system.bzl", "envoy_package") +licenses(["notice"]) # Apache 2 + envoy_package() envoy_cc_binary( diff --git a/tools/testdata/check_format/skip_envoy_package.BUILD b/tools/testdata/check_format/skip_envoy_package.BUILD index 51736f94d67d..11d7a8c872b1 100644 --- a/tools/testdata/check_format/skip_envoy_package.BUILD +++ b/tools/testdata/check_format/skip_envoy_package.BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_binary") + licenses(["notice"]) # Apache 2 cc_binary( diff --git a/tools/testdata/check_format/skip_envoy_package.BUILD.gold b/tools/testdata/check_format/skip_envoy_package.BUILD.gold index 51736f94d67d..11d7a8c872b1 100644 --- a/tools/testdata/check_format/skip_envoy_package.BUILD.gold +++ b/tools/testdata/check_format/skip_envoy_package.BUILD.gold @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_binary") + licenses(["notice"]) # Apache 2 cc_binary( diff --git a/tools/testdata/check_format/update_license.BUILD.gold b/tools/testdata/check_format/update_license.BUILD.gold index c66178a8f94a..eff2213c760c 100644 --- a/tools/testdata/check_format/update_license.BUILD.gold +++ b/tools/testdata/check_format/update_license.BUILD.gold @@ -1,5 +1,5 @@ -licenses(["notice"]) # Apache 2 - load("//some:thing.bzl", "foo") +licenses(["notice"]) # Apache 2 + foo() diff --git a/tools/testdata/protoxform/BUILD b/tools/testdata/protoxform/BUILD index 382cffec50e4..6769f453f6ff 100644 --- a/tools/testdata/protoxform/BUILD +++ b/tools/testdata/protoxform/BUILD @@ -1,3 +1,5 @@ +load("@rules_proto//proto:defs.bzl", "proto_library") + licenses(["notice"]) # Apache 2 proto_library( diff --git a/tools/testdata/protoxform/envoy/active_non_terminal/v2/BUILD b/tools/testdata/protoxform/envoy/active_non_terminal/v2/BUILD index 4c756ea94137..00f83f0bf1f7 100644 --- a/tools/testdata/protoxform/envoy/active_non_terminal/v2/BUILD +++ b/tools/testdata/protoxform/envoy/active_non_terminal/v2/BUILD @@ -1,3 +1,5 @@ +load("@rules_proto//proto:defs.bzl", "proto_library") + licenses(["notice"]) # Apache 2 proto_library( diff --git a/tools/testdata/protoxform/envoy/active_terminal/v2/BUILD b/tools/testdata/protoxform/envoy/active_terminal/v2/BUILD index d97319b2631a..db6244be9a36 100644 --- a/tools/testdata/protoxform/envoy/active_terminal/v2/BUILD +++ b/tools/testdata/protoxform/envoy/active_terminal/v2/BUILD @@ -1,3 +1,5 @@ +load("@rules_proto//proto:defs.bzl", "proto_library") + licenses(["notice"]) # Apache 2 proto_library( diff --git a/tools/testdata/protoxform/envoy/frozen/v2/BUILD b/tools/testdata/protoxform/envoy/frozen/v2/BUILD index bbbcaffdbc75..9226f3e71361 100644 --- a/tools/testdata/protoxform/envoy/frozen/v2/BUILD +++ b/tools/testdata/protoxform/envoy/frozen/v2/BUILD @@ -1,3 +1,5 @@ +load("@rules_proto//proto:defs.bzl", "proto_library") + licenses(["notice"]) # Apache 2 proto_library( diff --git a/tools/testdata/protoxform/envoy/frozen/v3/BUILD b/tools/testdata/protoxform/envoy/frozen/v3/BUILD index bbbcaffdbc75..9226f3e71361 100644 --- a/tools/testdata/protoxform/envoy/frozen/v3/BUILD +++ b/tools/testdata/protoxform/envoy/frozen/v3/BUILD @@ -1,3 +1,5 @@ +load("@rules_proto//proto:defs.bzl", "proto_library") + licenses(["notice"]) # Apache 2 proto_library( diff --git a/tools/testdata/protoxform/envoy/v2/BUILD b/tools/testdata/protoxform/envoy/v2/BUILD index 08fcd5836915..18cca27da4c6 100644 --- a/tools/testdata/protoxform/envoy/v2/BUILD +++ b/tools/testdata/protoxform/envoy/v2/BUILD @@ -1,3 +1,5 @@ +load("@rules_proto//proto:defs.bzl", "proto_library") + licenses(["notice"]) # Apache 2 proto_library( diff --git a/tools/testdata/protoxform/external/BUILD b/tools/testdata/protoxform/external/BUILD index 96986f3e19ae..3908c1ec3a49 100644 --- a/tools/testdata/protoxform/external/BUILD +++ b/tools/testdata/protoxform/external/BUILD @@ -1,3 +1,5 @@ +load("@rules_proto//proto:defs.bzl", "proto_library") + licenses(["notice"]) # Apache 2 proto_library( diff --git a/tools/type_whisperer/BUILD b/tools/type_whisperer/BUILD index 191e2b90d1ba..4b2b7735de55 100644 --- a/tools/type_whisperer/BUILD +++ b/tools/type_whisperer/BUILD @@ -1,11 +1,12 @@ -licenses(["notice"]) # Apache 2 - +load("@rules_python//python:defs.bzl", "py_binary") load("//bazel:envoy_build_system.bzl", "envoy_cc_library", "envoy_package", "envoy_proto_library") load("//tools/type_whisperer:api_build_file.bzl", "api_build_file") load("//tools/type_whisperer:file_descriptor_set_text.bzl", "file_descriptor_set_text") load("//tools/type_whisperer:type_database.bzl", "type_database") load("//tools/type_whisperer:proto_cc_source.bzl", "proto_cc_source") +licenses(["notice"]) # Apache 2 + envoy_package() envoy_proto_library( diff --git a/tools/type_whisperer/file_descriptor_set_text.bzl b/tools/type_whisperer/file_descriptor_set_text.bzl index 5146e1f82331..18a5c2e72050 100644 --- a/tools/type_whisperer/file_descriptor_set_text.bzl +++ b/tools/type_whisperer/file_descriptor_set_text.bzl @@ -1,3 +1,5 @@ +load("@rules_proto//proto:defs.bzl", "ProtoInfo") + def _file_descriptor_set_text(ctx): file_descriptor_sets = depset() for dep in ctx.attr.deps: