2022-04-27 04:07:17 +00:00
|
|
|
"aspect-build/bazel-lib"
|
|
|
|
|
|
|
|
module(
|
|
|
|
name = "aspect_bazel_lib",
|
2023-09-06 23:18:53 +00:00
|
|
|
version = "0.0.0",
|
2023-10-05 21:18:42 +00:00
|
|
|
bazel_compatibility = [">=6.0.0"],
|
2023-06-09 23:22:37 +00:00
|
|
|
compatibility_level = 1,
|
2022-04-27 04:07:17 +00:00
|
|
|
)
|
|
|
|
|
2024-05-14 07:17:27 +00:00
|
|
|
# Lower-bounds (minimum) versions for direct runtime dependencies
|
2024-01-29 20:35:48 +00:00
|
|
|
bazel_dep(name = "bazel_skylib", version = "1.5.0")
|
2024-08-20 17:37:52 +00:00
|
|
|
bazel_dep(name = "platforms", version = "0.0.10")
|
2023-06-09 23:22:37 +00:00
|
|
|
|
2023-05-17 15:04:42 +00:00
|
|
|
# 0.5.4 is the first version with bzlmod support
|
2024-10-26 00:33:04 +00:00
|
|
|
bazel_dep(name = "stardoc", version = "0.7.1", repo_name = "io_bazel_stardoc")
|
2022-04-27 04:07:17 +00:00
|
|
|
|
2023-10-10 19:16:13 +00:00
|
|
|
bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains")
|
|
|
|
bazel_lib_toolchains.copy_directory()
|
|
|
|
bazel_lib_toolchains.copy_to_directory()
|
|
|
|
bazel_lib_toolchains.jq()
|
|
|
|
bazel_lib_toolchains.yq()
|
|
|
|
bazel_lib_toolchains.coreutils()
|
|
|
|
bazel_lib_toolchains.tar()
|
2024-05-03 23:12:56 +00:00
|
|
|
bazel_lib_toolchains.zstd()
|
2023-10-10 19:16:13 +00:00
|
|
|
bazel_lib_toolchains.expand_template()
|
2023-12-20 21:08:47 +00:00
|
|
|
bazel_lib_toolchains.bats()
|
2024-08-20 18:20:51 +00:00
|
|
|
use_repo(bazel_lib_toolchains, "bats_toolchains", "bsd_tar_toolchains", "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq", "jq_toolchains", "yq", "yq_toolchains", "zstd_toolchains")
|
2023-05-16 23:14:50 +00:00
|
|
|
|
2022-09-12 23:25:02 +00:00
|
|
|
register_toolchains(
|
2023-01-17 03:37:36 +00:00
|
|
|
"@copy_directory_toolchains//:all",
|
|
|
|
"@copy_to_directory_toolchains//:all",
|
2022-09-12 23:25:02 +00:00
|
|
|
"@jq_toolchains//:all",
|
|
|
|
"@yq_toolchains//:all",
|
2023-05-16 23:14:50 +00:00
|
|
|
"@coreutils_toolchains//:all",
|
2023-06-09 23:22:37 +00:00
|
|
|
"@expand_template_toolchains//:all",
|
2023-12-20 21:08:47 +00:00
|
|
|
"@bats_toolchains//:all",
|
2024-03-29 18:35:56 +00:00
|
|
|
"@bsd_tar_toolchains//:all",
|
2024-05-04 15:15:20 +00:00
|
|
|
"@zstd_toolchains//:all",
|
2022-09-12 23:25:02 +00:00
|
|
|
)
|
2023-05-17 15:04:42 +00:00
|
|
|
|
2024-05-14 07:17:27 +00:00
|
|
|
####### Dev dependencies ########
|
2023-10-10 19:16:13 +00:00
|
|
|
|
2023-09-24 22:06:10 +00:00
|
|
|
# To allow /tools to be built from source
|
2023-09-27 16:01:51 +00:00
|
|
|
# NOTE: when publishing to BCR, we patch this to be dev_dependency, as we publish pre-built binaries
|
|
|
|
# along with our releases.
|
2023-09-24 22:06:10 +00:00
|
|
|
|
2023-10-08 22:57:29 +00:00
|
|
|
bazel_dep(
|
|
|
|
name = "gazelle",
|
2024-05-14 06:30:19 +00:00
|
|
|
version = "0.36.0",
|
2023-10-08 22:57:29 +00:00
|
|
|
# In released versions: dev_dependency = True
|
|
|
|
)
|
|
|
|
bazel_dep(
|
|
|
|
name = "rules_go",
|
2024-05-14 06:30:19 +00:00
|
|
|
version = "0.46.0",
|
2023-10-08 22:57:29 +00:00
|
|
|
repo_name = "io_bazel_rules_go",
|
|
|
|
# In released versions: dev_dependency = True
|
|
|
|
)
|
|
|
|
|
|
|
|
go_deps = use_extension(
|
|
|
|
"@gazelle//:extensions.bzl",
|
|
|
|
"go_deps",
|
|
|
|
# In released versions: dev_dependency = True
|
|
|
|
)
|
2023-09-24 22:06:10 +00:00
|
|
|
go_deps.from_file(go_mod = "//:go.mod")
|
|
|
|
use_repo(
|
|
|
|
go_deps,
|
|
|
|
"com_github_bmatcuk_doublestar_v4",
|
|
|
|
"org_golang_x_exp",
|
2024-08-09 00:57:03 +00:00
|
|
|
"org_golang_x_sys",
|
2023-09-24 22:06:10 +00:00
|
|
|
)
|
|
|
|
|
2024-05-14 07:17:27 +00:00
|
|
|
host = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "host", dev_dependency = True)
|
|
|
|
host.host()
|
|
|
|
use_repo(host, "aspect_bazel_lib_host")
|
2023-05-17 15:04:42 +00:00
|
|
|
|
2024-09-24 01:43:45 +00:00
|
|
|
host_platform = use_extension("@platforms//host:extension.bzl", "host_platform")
|
2024-08-20 17:37:52 +00:00
|
|
|
use_repo(host_platform, "host_platform")
|
|
|
|
|
2024-09-02 16:32:38 +00:00
|
|
|
bazel_dep(name = "aspect_rules_lint", version = "1.0.0-rc10", dev_dependency = True)
|
2024-01-31 05:08:35 +00:00
|
|
|
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True)
|
2024-05-14 06:30:19 +00:00
|
|
|
bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True)
|
2024-01-26 18:04:22 +00:00
|
|
|
bazel_dep(name = "bazel_features", version = "0.2.0", dev_dependency = True)
|