xref: /aosp_15_r20/external/bazel-skylib/MODULE.bazel (revision bcb5dc7965af6ee42bf2f21341a2ec00233a8c8a)
1*bcb5dc79SHONG Yifanmodule(
2*bcb5dc79SHONG Yifan    name = "bazel_skylib",
3*bcb5dc79SHONG Yifan    # Keep in sync with version.bzl and @bazel_skylib_gazelle_plugin//:MODULE.bazel
4*bcb5dc79SHONG Yifan    version = "1.7.1",
5*bcb5dc79SHONG Yifan    compatibility_level = 1,
6*bcb5dc79SHONG Yifan)
7*bcb5dc79SHONG Yifan
8*bcb5dc79SHONG Yifanregister_toolchains(
9*bcb5dc79SHONG Yifan    "//toolchains/unittest:cmd_toolchain",
10*bcb5dc79SHONG Yifan    "//toolchains/unittest:bash_toolchain",
11*bcb5dc79SHONG Yifan)
12*bcb5dc79SHONG Yifan
13*bcb5dc79SHONG Yifanbazel_dep(name = "platforms", version = "0.0.4")
14*bcb5dc79SHONG Yifanbazel_dep(name = "rules_license", version = "0.0.7")
15*bcb5dc79SHONG Yifan
16*bcb5dc79SHONG Yifan### INTERNAL ONLY - lines after this are not included in the release packaging.
17*bcb5dc79SHONG Yifan
18*bcb5dc79SHONG Yifan# Build-only / test-only dependencies
19*bcb5dc79SHONG Yifanbazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc")
20*bcb5dc79SHONG Yifanbazel_dep(name = "rules_pkg", version = "0.9.1", dev_dependency = True)
21*bcb5dc79SHONG Yifanbazel_dep(name = "rules_testing", version = "0.6.0", dev_dependency = True)
22*bcb5dc79SHONG Yifan
23*bcb5dc79SHONG Yifan# Needed for bazelci and for building distribution tarballs.
24*bcb5dc79SHONG Yifan# If using an unreleased version of bazel_skylib via git_override, apply
25*bcb5dc79SHONG Yifan# MODULE.bazel-remove-override.patch to remove the following lines:
26*bcb5dc79SHONG Yifanbazel_dep(name = "bazel_skylib_gazelle_plugin", dev_dependency = True)
27*bcb5dc79SHONG Yifanlocal_path_override(
28*bcb5dc79SHONG Yifan    module_name = "bazel_skylib_gazelle_plugin",
29*bcb5dc79SHONG Yifan    path = "gazelle",
30*bcb5dc79SHONG Yifan)
31*bcb5dc79SHONG Yifan
32*bcb5dc79SHONG Yifanexternal_directory_tests_ext = use_extension("//tests/directory:external_directory_tests.bzl", "external_directory_tests_ext", dev_dependency = True)
33*bcb5dc79SHONG Yifanuse_repo(external_directory_tests_ext, "external_directory_tests")
34*bcb5dc79SHONG Yifan
35*bcb5dc79SHONG Yifanas_extension_test_ext = use_extension("//tests:modules_test.bzl", "as_extension_test_ext", dev_dependency = True)
36*bcb5dc79SHONG Yifanuse_repo(as_extension_test_ext, "bar", "foo")
37*bcb5dc79SHONG Yifan
38*bcb5dc79SHONG Yifanuse_all_repos_test_ext = use_extension("//tests:modules_test.bzl", "use_all_repos_test_ext", dev_dependency = True)
39*bcb5dc79SHONG Yifanuse_repo(use_all_repos_test_ext, "baz", "qux")
40