2022-08-30 18:57:34 +00:00
|
|
|
module(
|
|
|
|
name = "bazel_skylib",
|
2023-01-20 21:48:10 +00:00
|
|
|
# Keep in sync with version.bzl and @bazel_skylib_gazelle_plugin//:MODULE.bazel
|
2024-06-03 13:22:42 +00:00
|
|
|
version = "1.7.1",
|
2023-01-20 21:48:10 +00:00
|
|
|
compatibility_level = 1,
|
2022-08-30 18:57:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
register_toolchains(
|
|
|
|
"//toolchains/unittest:cmd_toolchain",
|
|
|
|
"//toolchains/unittest:bash_toolchain",
|
|
|
|
)
|
|
|
|
|
|
|
|
bazel_dep(name = "platforms", version = "0.0.4")
|
2024-05-01 21:24:18 +00:00
|
|
|
bazel_dep(name = "rules_license", version = "0.0.7")
|
2022-08-30 18:57:34 +00:00
|
|
|
|
|
|
|
### INTERNAL ONLY - lines after this are not included in the release packaging.
|
|
|
|
|
|
|
|
# Build-only / test-only dependencies
|
2024-04-24 21:40:06 +00:00
|
|
|
bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc")
|
2023-08-08 21:32:28 +00:00
|
|
|
bazel_dep(name = "rules_pkg", version = "0.9.1", dev_dependency = True)
|
2024-05-29 05:24:27 +00:00
|
|
|
bazel_dep(name = "rules_testing", version = "0.6.0", dev_dependency = True)
|
2023-01-20 21:48:10 +00:00
|
|
|
|
|
|
|
# Needed for bazelci and for building distribution tarballs.
|
|
|
|
# If using an unreleased version of bazel_skylib via git_override, apply
|
|
|
|
# MODULE.bazel-remove-override.patch to remove the following lines:
|
|
|
|
bazel_dep(name = "bazel_skylib_gazelle_plugin", dev_dependency = True)
|
|
|
|
local_path_override(
|
|
|
|
module_name = "bazel_skylib_gazelle_plugin",
|
|
|
|
path = "gazelle",
|
|
|
|
)
|
2024-04-24 18:53:32 +00:00
|
|
|
|
2024-05-29 05:24:27 +00:00
|
|
|
external_directory_tests_ext = use_extension("//tests/directory:external_directory_tests.bzl", "external_directory_tests_ext", dev_dependency = True)
|
|
|
|
use_repo(external_directory_tests_ext, "external_directory_tests")
|
|
|
|
|
|
|
|
as_extension_test_ext = use_extension("//tests:modules_test.bzl", "as_extension_test_ext", dev_dependency = True)
|
2024-04-24 18:53:32 +00:00
|
|
|
use_repo(as_extension_test_ext, "bar", "foo")
|
|
|
|
|
2024-05-29 05:24:27 +00:00
|
|
|
use_all_repos_test_ext = use_extension("//tests:modules_test.bzl", "use_all_repos_test_ext", dev_dependency = True)
|
2024-04-24 18:53:32 +00:00
|
|
|
use_repo(use_all_repos_test_ext, "baz", "qux")
|