2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-27 17:43:27 +00:00
bazel-lib/MODULE.bazel
Alex Eagle cd4293c140
refactor: invert the conditional for setting version (#515)
This evaluates the same way, but tricks the parser in Publish-to-BCR app into skipping any replacements
2023-09-06 15:50:37 -07:00

35 lines
1.2 KiB
Plaintext

"aspect-build/bazel-lib"
# replaced by export-subst during 'git archive'
VERSION = "$Format:%(describe:tags=true)$"
module(
name = "aspect_bazel_lib",
version = VERSION.replace("v", "", 1) if not VERSION.startswith("$Format") else "0.0.0",
compatibility_level = 1,
)
# Lower-bound versions of our dependencies
bazel_dep(name = "bazel_skylib", version = "1.4.2")
bazel_dep(name = "platforms", version = "0.0.4")
# 0.5.4 is the first version with bzlmod support
bazel_dep(name = "stardoc", version = "0.5.4", repo_name = "io_bazel_stardoc")
ext = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "ext")
use_repo(ext, "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq_toolchains", "yq_toolchains")
register_toolchains(
"@copy_directory_toolchains//:all",
"@copy_to_directory_toolchains//:all",
"@jq_toolchains//:all",
"@yq_toolchains//:all",
"@coreutils_toolchains//:all",
"@expand_template_toolchains//:all",
)
# Development-only dependencies
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True)
bazel_dep(name = "buildifier_prebuilt", version = "6.1.0", dev_dependency = True)