2023-10-05 21:22:38 +00:00
|
|
|
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
2024-01-08 00:42:57 +00:00
|
|
|
load("//lib:utils.bzl", "is_bazel_7_or_greater")
|
2023-10-05 21:22:38 +00:00
|
|
|
|
2022-08-22 17:59:38 +00:00
|
|
|
exports_files(
|
2022-09-13 03:45:48 +00:00
|
|
|
[
|
|
|
|
"diff_test_tmpl.sh",
|
|
|
|
"diff_test_tmpl.bat",
|
|
|
|
"parse_status_file.jq",
|
2023-06-14 14:21:55 +00:00
|
|
|
"parse_status_file.yq",
|
2022-09-13 03:45:48 +00:00
|
|
|
],
|
2022-08-22 17:59:38 +00:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
2022-09-27 16:59:19 +00:00
|
|
|
exports_files(
|
|
|
|
glob(["*.bzl"]),
|
|
|
|
visibility = ["//lib/private/docs:__pkg__"],
|
2022-08-20 19:53:12 +00:00
|
|
|
)
|
2023-10-05 21:22:38 +00:00
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "base64",
|
|
|
|
srcs = ["base64.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [":strings"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "copy_directory",
|
|
|
|
srcs = ["copy_directory.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":copy_common",
|
|
|
|
":platform_utils",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "copy_directory_toolchain",
|
|
|
|
srcs = ["copy_directory_toolchain.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//tools:integrity",
|
|
|
|
"//tools:version",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "copy_file",
|
|
|
|
srcs = ["copy_file.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":copy_common",
|
|
|
|
":directory_path",
|
|
|
|
":platform_utils",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "copy_to_bin",
|
|
|
|
srcs = ["copy_to_bin.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":copy_file",
|
|
|
|
"@bazel_skylib//lib:paths",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "copy_to_directory",
|
|
|
|
srcs = ["copy_to_directory.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":copy_common",
|
|
|
|
":directory_path",
|
|
|
|
":glob_match",
|
|
|
|
":paths",
|
|
|
|
":platform_utils",
|
|
|
|
"@bazel_skylib//lib:paths",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "copy_to_directory_toolchain",
|
|
|
|
srcs = ["copy_to_directory_toolchain.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//tools:integrity",
|
|
|
|
"//tools:version",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "directory_path",
|
|
|
|
srcs = ["directory_path.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = ["//lib:utils"],
|
|
|
|
)
|
|
|
|
|
|
|
|
#keep
|
|
|
|
bzl_library(
|
|
|
|
name = "diff_test",
|
|
|
|
srcs = ["diff_test.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":directory_path",
|
|
|
|
"//lib:utils",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "docs",
|
|
|
|
srcs = ["docs.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//lib:write_source_files",
|
|
|
|
"@io_bazel_stardoc//stardoc:stardoc_lib", #keep
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "expand_template",
|
|
|
|
srcs = ["expand_template.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":expand_locations",
|
|
|
|
":expand_variables",
|
|
|
|
"//lib:stamping",
|
|
|
|
"@bazel_skylib//lib:dicts",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "expand_template_toolchain",
|
|
|
|
srcs = ["expand_template_toolchain.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"//tools:integrity",
|
|
|
|
"//tools:version",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "expand_variables",
|
|
|
|
srcs = ["expand_variables.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = ["@bazel_skylib//lib:paths"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "host_repo",
|
|
|
|
srcs = ["host_repo.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":repo_utils",
|
|
|
|
"@bazel_skylib//lib:versions",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "jq",
|
|
|
|
srcs = ["jq.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
2024-02-27 01:43:56 +00:00
|
|
|
deps = [
|
|
|
|
":expand_locations",
|
|
|
|
"//lib:stamping",
|
|
|
|
],
|
2023-10-05 21:22:38 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "jq_toolchain",
|
|
|
|
srcs = ["jq_toolchain.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [":repo_utils"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "output_files",
|
|
|
|
srcs = ["output_files.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = ["//lib:utils"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "params_file",
|
|
|
|
srcs = ["params_file.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [":expand_locations"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "patch",
|
|
|
|
srcs = ["patch.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [":repo_utils"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "paths",
|
|
|
|
srcs = ["paths.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = ["@bazel_skylib//lib:paths"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "run_binary",
|
|
|
|
srcs = ["run_binary.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":expand_locations",
|
|
|
|
":expand_variables",
|
|
|
|
"//lib:stamping",
|
|
|
|
"@bazel_skylib//lib:dicts",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "utils",
|
|
|
|
srcs = ["utils.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
"@bazel_tools//tools/build_defs/repo:http.bzl",
|
|
|
|
"@bazel_tools//tools/build_defs/repo:utils.bzl",
|
2024-01-08 00:42:57 +00:00
|
|
|
] + (["@bazel_tools//tools/build_defs/repo:cache.bzl"] if is_bazel_7_or_greater() else []),
|
2023-10-05 21:22:38 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# keep
|
|
|
|
bzl_library(
|
|
|
|
name = "fail_with_message_test",
|
|
|
|
srcs = ["fail_with_message_test.bzl"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "write_source_file",
|
|
|
|
srcs = ["write_source_file.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":diff_test",
|
|
|
|
":directory_path",
|
|
|
|
":fail_with_message_test",
|
|
|
|
":utils",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "yq",
|
|
|
|
srcs = ["yq.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = ["//lib:stamping"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "yq_toolchain",
|
|
|
|
srcs = ["yq_toolchain.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [":repo_utils"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "platform_utils",
|
|
|
|
srcs = [
|
|
|
|
"platform_utils.bzl",
|
|
|
|
"@local_config_platform//:constraints.bzl", # keep
|
|
|
|
],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [], # keep
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "tar_toolchain",
|
|
|
|
srcs = ["tar_toolchain.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [":repo_utils"],
|
|
|
|
)
|
|
|
|
|
2023-10-09 22:57:52 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "tar",
|
|
|
|
srcs = ["tar.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = ["@aspect_bazel_lib//lib:paths"],
|
|
|
|
)
|
|
|
|
|
2023-12-20 21:08:47 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "bats",
|
|
|
|
srcs = ["bats.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
deps = [
|
|
|
|
":expand_locations",
|
|
|
|
":expand_variables",
|
|
|
|
"@aspect_bazel_lib//lib:paths",
|
2023-12-21 22:27:21 +00:00
|
|
|
"@aspect_bazel_lib//lib:windows_utils",
|
2023-12-20 21:08:47 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "bats_toolchain",
|
|
|
|
srcs = ["bats_toolchain.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
2023-10-05 21:22:38 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "copy_common",
|
|
|
|
srcs = ["copy_common.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "coreutils_toolchain",
|
|
|
|
srcs = ["coreutils_toolchain.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "expand_locations",
|
|
|
|
srcs = ["expand_locations.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
2023-10-10 21:13:17 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "extension_utils",
|
|
|
|
srcs = ["extension_utils.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
2023-10-05 21:22:38 +00:00
|
|
|
bzl_library(
|
|
|
|
name = "glob_match",
|
|
|
|
srcs = ["glob_match.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "lists",
|
|
|
|
srcs = ["lists.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "repo_utils",
|
|
|
|
srcs = ["repo_utils.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "source_toolchains_repo",
|
|
|
|
srcs = ["source_toolchains_repo.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "stamping",
|
|
|
|
srcs = ["stamping.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
)
|
|
|
|
|
|
|
|
bzl_library(
|
|
|
|
name = "strings",
|
|
|
|
srcs = ["strings.bzl"],
|
|
|
|
visibility = ["//lib:__subpackages__"],
|
|
|
|
)
|