Skip to content

Commit

Permalink
chore(Bazel): format Bazel files by Bazel Buildifier
Browse files Browse the repository at this point in the history
  • Loading branch information
ADD-SP committed Sep 29, 2024
1 parent 778fe08 commit 2a31bc7
Show file tree
Hide file tree
Showing 21 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag", "string_flag")
load("@bazel_skylib//lib:selects.bzl", "selects")
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag", "string_flag")
load("//build/nfpm:rules.bzl", "nfpm_pkg")
load("//build/toolchain:managed_toolchain.bzl", "aarch64_glibc_distros")

Expand Down
4 changes: 2 additions & 2 deletions build/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("@bazel_skylib//lib:selects.bzl", "selects")
load("//build:build_system.bzl", "get_workspace_name", "kong_genrule", "kong_install", "kong_rules_group", "kong_template_file")
load("@kong//build/openresty/wasmx/filters:variables.bzl", "WASM_FILTERS_TARGETS")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("//build:build_system.bzl", "get_workspace_name", "kong_genrule", "kong_install", "kong_rules_group", "kong_template_file")

exports_files([
"package/nfpm.yaml",
Expand Down
2 changes: 1 addition & 1 deletion build/cross_deps/libxcrypt/BUILD.libxcrypt.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
load("@bazel_skylib//lib:selects.bzl", "selects")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")

filegroup(
name = "all_srcs",
Expand Down
2 changes: 1 addition & 1 deletion build/cross_deps/libyaml/BUILD.libyaml.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")

filegroup(
name = "all_srcs",
Expand Down
2 changes: 1 addition & 1 deletion build/cross_deps/libyaml/repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""A module defining the third party dependency OpenResty"""

load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")

def libyaml_repositories():
"""Defines the libyaml repository"""
Expand Down
4 changes: 2 additions & 2 deletions build/cross_deps/repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//build/cross_deps/zlib:repositories.bzl", "zlib_repositories")
load("//build/cross_deps/libyaml:repositories.bzl", "libyaml_repositories")
load("//build/cross_deps/libxcrypt:repositories.bzl", "libxcrypt_repositories")
load("//build/cross_deps/libyaml:repositories.bzl", "libyaml_repositories")
load("//build/cross_deps/zlib:repositories.bzl", "zlib_repositories")

def cross_deps_repositories():
zlib_repositories()
Expand Down
2 changes: 1 addition & 1 deletion build/cross_deps/zlib/BUILD.zlib.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")

filegroup(
name = "all_srcs",
Expand Down
2 changes: 1 addition & 1 deletion build/cross_deps/zlib/repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""A module defining the third party dependency OpenResty"""

load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")

def zlib_repositories():
"""Defines the zlib repository"""
Expand Down
2 changes: 1 addition & 1 deletion build/libexpat/BUILD.libexpat.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")

filegroup(
name = "all_srcs",
Expand Down
2 changes: 1 addition & 1 deletion build/libexpat/repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""A module defining the third party dependency OpenResty"""

load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@kong_bindings//:variables.bzl", "KONG_VAR")

def libexpat_repositories():
Expand Down
6 changes: 3 additions & 3 deletions build/luarocks/BUILD.luarocks.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
load("@kong//build:build_system.bzl", "kong_template_genrule")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")

filegroup(
name = "all_srcs",
Expand Down Expand Up @@ -39,8 +39,8 @@ configure_make(
kong_template_genrule(
name = "luarocks_exec",
srcs = [
"@openssl//:openssl",
"@libexpat//:libexpat",
"@libexpat",
"@openssl",
] + select({
"@kong//:any-cross": ["@cross_deps_libyaml//:libyaml"],
"//conditions:default": [
Expand Down
8 changes: 4 additions & 4 deletions build/openresty/BUILD.openresty.bazel
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make", "make")
load("@bazel_skylib//lib:selects.bzl", "selects")
load("@kong//build/openresty/wasmx:rules.bzl", "wasm_runtime", "wasmx_configure_options", "wasmx_env")
load("@kong//build:build_system.bzl", "kong_cc_static_library")
load("@openresty_binding//:variables.bzl", "LUAJIT_VERSION")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("@kong//build/openresty/wasmx:rules.bzl", "wasm_runtime", "wasmx_configure_options", "wasmx_env")
load("@kong//build/openresty/wasmx/filters:variables.bzl", "WASM_FILTERS_TARGETS")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("@openresty_binding//:variables.bzl", "LUAJIT_VERSION")
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make", "make")

filegroup(
name = "luajit_srcs",
Expand Down
2 changes: 1 addition & 1 deletion build/openresty/atc_router/atc_router_repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""A module defining the dependency atc-router"""

load("//build:build_system.bzl", "git_or_local_repository")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("//build:build_system.bzl", "git_or_local_repository")

def atc_router_repositories():
git_or_local_repository(
Expand Down
2 changes: 1 addition & 1 deletion build/openresty/brotli/brotli_repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""A module defining the dependency """

load("//build:build_system.bzl", "git_or_local_repository")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("//build:build_system.bzl", "git_or_local_repository")

def brotli_repositories():
maybe(
Expand Down
2 changes: 1 addition & 1 deletion build/openresty/openssl/openssl.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Note that the $(PERL) "make variable" (https://docs.bazel.build/versions/main/be
is populated by the perl toolchain provided by rules_perl.
"""

load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")

# Read https://wiki.openssl.org/index.php/Compilation_and_Installation

Expand Down
2 changes: 1 addition & 1 deletion build/openresty/pcre/BUILD.pcre.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")

filegroup(
name = "all_srcs",
Expand Down
12 changes: 6 additions & 6 deletions build/openresty/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("//build:build_system.bzl", "git_or_local_repository")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("//build/openresty/pcre:pcre_repositories.bzl", "pcre_repositories")
load("//build:build_system.bzl", "git_or_local_repository")
load("//build/openresty/ada:ada_repositories.bzl", "ada_repositories")
load("//build/openresty/atc_router:atc_router_repositories.bzl", "atc_router_repositories")
load("//build/openresty/brotli:brotli_repositories.bzl", "brotli_repositories")
load("//build/openresty/openssl:openssl_repositories.bzl", "openssl_repositories")
load("//build/openresty/pcre:pcre_repositories.bzl", "pcre_repositories")
load("//build/openresty/simdjson_ffi:simdjson_ffi_repositories.bzl", "simdjson_ffi_repositories")
load("//build/openresty/atc_router:atc_router_repositories.bzl", "atc_router_repositories")
load("//build/openresty/snappy:snappy_repositories.bzl", "snappy_repositories")
load("//build/openresty/wasmx:wasmx_repositories.bzl", "wasmx_repositories")
load("//build/openresty/wasmx/filters:repositories.bzl", "wasm_filters_repositories")
load("//build/openresty/brotli:brotli_repositories.bzl", "brotli_repositories")
load("//build/openresty/snappy:snappy_repositories.bzl", "snappy_repositories")
load("//build/openresty/ada:ada_repositories.bzl", "ada_repositories")

# This is a dummy file to export the module's repository.
_NGINX_MODULE_DUMMY_FILE = """
Expand Down
2 changes: 1 addition & 1 deletion build/openresty/simdjson_ffi/simdjson_ffi_repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""A module defining the dependency lua-resty-simdjson"""

load("//build:build_system.bzl", "git_or_local_repository")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("//build:build_system.bzl", "git_or_local_repository")

def simdjson_ffi_repositories():
git_or_local_repository(
Expand Down
2 changes: 1 addition & 1 deletion build/openresty/wasmx/wasmx_repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""A module defining the third party dependency WasmX"""

load("//build:build_system.bzl", "git_or_local_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("//build:build_system.bzl", "git_or_local_repository")

wasm_runtime_build_file = """
filegroup(
Expand Down
6 changes: 3 additions & 3 deletions build/repositories.bzl
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""A module defining the third party dependency OpenResty"""

load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("//build:build_system.bzl", "git_or_local_repository", "github_release")
load("//build/luarocks:luarocks_repositories.bzl", "luarocks_repositories")
load("//build/cross_deps:repositories.bzl", "cross_deps_repositories")
load("//build/libexpat:repositories.bzl", "libexpat_repositories")
load("@kong_bindings//:variables.bzl", "KONG_VAR")
load("//build/luarocks:luarocks_repositories.bzl", "luarocks_repositories")
load("//build/toolchain:bindings.bzl", "load_bindings")

_SRCS_BUILD_FILE_CONTENT = """
Expand Down
2 changes: 1 addition & 1 deletion build/toolchain/cc_toolchain_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

load("@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl", "feature", "flag_group", "flag_set", "tool_path", "with_feature_set")
load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "ACTION_NAMES")
load("@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl", "feature", "flag_group", "flag_set", "tool_path", "with_feature_set")
load("@toolchain_bindings//:variables.bzl", "INTERNAL_ROOT")

all_compile_actions = [
Expand Down

0 comments on commit 2a31bc7

Please sign in to comment.