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
|
|
|
)
|
|
|
|
|
2023-05-17 15:04:42 +00:00
|
|
|
# Lower-bound versions of our dependencies
|
2023-07-17 18:54:52 +00:00
|
|
|
bazel_dep(name = "bazel_skylib", version = "1.4.2")
|
2023-09-14 00:50:26 +00:00
|
|
|
bazel_dep(name = "platforms", version = "0.0.7")
|
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
|
2023-06-09 23:22:37 +00:00
|
|
|
bazel_dep(name = "stardoc", version = "0.5.4", repo_name = "io_bazel_stardoc")
|
2022-04-27 04:07:17 +00:00
|
|
|
|
|
|
|
ext = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "ext")
|
2023-10-04 17:43:09 +00:00
|
|
|
use_repo(ext, "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq_toolchains", "tar_toolchains", "yq_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",
|
2023-10-04 17:43:09 +00:00
|
|
|
"@tar_toolchains//:all",
|
2022-09-12 23:25:02 +00:00
|
|
|
"@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",
|
2022-09-12 23:25:02 +00:00
|
|
|
)
|
2023-05-17 15:04:42 +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.
|
|
|
|
bazel_dep(name = "rules_go", version = "0.41.0", repo_name = "io_bazel_rules_go")
|
2023-09-24 22:06:10 +00:00
|
|
|
|
2023-09-27 16:01:51 +00:00
|
|
|
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
|
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",
|
|
|
|
)
|
|
|
|
|
2023-05-17 15:04:42 +00:00
|
|
|
# Development-only dependencies
|
|
|
|
|
|
|
|
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True)
|
2023-09-29 21:53:05 +00:00
|
|
|
bazel_dep(name = "buildifier_prebuilt", version = "6.3.3", dev_dependency = True)
|
2023-09-24 22:06:10 +00:00
|
|
|
bazel_dep(name = "gazelle", version = "0.33.0", dev_dependency = True)
|