2021-11-08 14:20:26 +00:00
|
|
|
"""Our "development" dependencies
|
|
|
|
|
|
|
|
Users should *not* need to install these. If users see a load()
|
|
|
|
statement from these, that's a bug in our distribution.
|
|
|
|
"""
|
|
|
|
|
2023-01-16 18:02:17 +00:00
|
|
|
load("//lib:repositories.bzl", "register_jq_toolchains", "register_yq_toolchains", "register_coreutils_toolchains")
|
2022-10-27 22:55:57 +00:00
|
|
|
load("//lib:utils.bzl", http_archive = "maybe_http_archive")
|
2022-06-10 20:58:40 +00:00
|
|
|
|
2021-12-09 00:47:45 +00:00
|
|
|
# buildifier: disable=unnamed-macro
|
2021-11-08 14:40:36 +00:00
|
|
|
def bazel_lib_internal_deps():
|
2021-11-08 14:20:26 +00:00
|
|
|
"Fetch deps needed for local development"
|
2022-06-10 20:58:40 +00:00
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_rules_go",
|
2023-01-17 18:12:01 +00:00
|
|
|
sha256 = "56d8c5a5c91e1af73eca71a6fab2ced959b67c86d12ba37feedb0a2dfea441a6",
|
2022-06-10 20:58:40 +00:00
|
|
|
urls = [
|
2023-01-17 18:12:01 +00:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.37.0/rules_go-v0.37.0.zip",
|
|
|
|
"https://github.com/bazelbuild/rules_go/releases/download/v0.37.0/rules_go-v0.37.0.zip",
|
2022-06-10 20:58:40 +00:00
|
|
|
],
|
|
|
|
)
|
2021-11-08 14:20:26 +00:00
|
|
|
|
2022-06-10 20:58:40 +00:00
|
|
|
http_archive(
|
|
|
|
name = "bazel_gazelle",
|
2023-01-17 18:11:43 +00:00
|
|
|
sha256 = "ecba0f04f96b4960a5b250c8e8eeec42281035970aa8852dda73098274d14a1d",
|
2022-06-10 20:58:40 +00:00
|
|
|
urls = [
|
2023-01-17 18:11:43 +00:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.29.0/bazel-gazelle-v0.29.0.tar.gz",
|
2022-06-10 20:58:40 +00:00
|
|
|
],
|
|
|
|
)
|
2021-11-08 14:20:26 +00:00
|
|
|
|
|
|
|
# Override bazel_skylib distribution to fetch sources instead
|
|
|
|
# so that the gazelle extension is included
|
|
|
|
# see https://github.com/bazelbuild/bazel-skylib/issues/250
|
2022-06-10 20:58:40 +00:00
|
|
|
http_archive(
|
|
|
|
name = "bazel_skylib",
|
2022-09-19 15:06:28 +00:00
|
|
|
sha256 = "3b620033ca48fcd6f5ef2ac85e0f6ec5639605fa2f627968490e52fc91a9932f",
|
|
|
|
strip_prefix = "bazel-skylib-1.3.0",
|
|
|
|
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/refs/tags/1.3.0.tar.gz"],
|
2022-06-10 20:58:40 +00:00
|
|
|
)
|
2021-11-08 14:20:26 +00:00
|
|
|
|
2022-06-10 20:58:40 +00:00
|
|
|
http_archive(
|
|
|
|
name = "io_bazel_stardoc",
|
|
|
|
sha256 = "aa814dae0ac400bbab2e8881f9915c6f47c49664bf087c409a15f90438d2c23e",
|
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/stardoc/releases/download/0.5.1/stardoc-0.5.1.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/stardoc/releases/download/0.5.1/stardoc-0.5.1.tar.gz",
|
|
|
|
],
|
|
|
|
)
|
2021-12-09 00:47:45 +00:00
|
|
|
|
|
|
|
# Register toolchains for tests
|
2022-05-31 17:51:12 +00:00
|
|
|
register_jq_toolchains()
|
|
|
|
register_yq_toolchains()
|
2023-01-16 18:02:17 +00:00
|
|
|
register_coreutils_toolchains()
|