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-02-17 18:12:41 +00:00
|
|
|
load("//lib:repositories.bzl", "register_coreutils_toolchains", "register_jq_toolchains", "register_yq_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-07-11 06:02:30 +00:00
|
|
|
sha256 = "278b7ff5a826f3dc10f04feaf0b70d48b68748ccd512d7f98bf442077f043fe3",
|
2022-06-10 20:58:40 +00:00
|
|
|
urls = [
|
2023-07-11 06:02:30 +00:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
|
|
|
|
"https://github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.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-06-13 05:03:12 +00:00
|
|
|
sha256 = "b8b6d75de6e4bf7c41b7737b183523085f56283f6db929b86c5e7e1f09cf59c9",
|
2022-06-10 20:58:40 +00:00
|
|
|
urls = [
|
2023-06-13 05:03:12 +00:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.31.1/bazel-gazelle-v0.31.1.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.31.1/bazel-gazelle-v0.31.1.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 = "bazel_skylib",
|
2023-06-13 05:16:56 +00:00
|
|
|
sha256 = "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa",
|
2023-02-19 04:35:42 +00:00
|
|
|
urls = [
|
2023-06-13 05:16:56 +00:00
|
|
|
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz",
|
2023-02-19 04:35:42 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "bazel_skylib_gazelle_plugin",
|
2023-06-15 23:50:56 +00:00
|
|
|
sha256 = "3327005dbc9e49cc39602fb46572525984f7119a9c6ffe5ed69fbe23db7c1560",
|
2023-02-19 04:35:42 +00:00
|
|
|
urls = [
|
2023-06-15 23:50:56 +00:00
|
|
|
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-gazelle-plugin-1.4.2.tar.gz",
|
2023-02-19 04:35:42 +00:00
|
|
|
],
|
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
|
|
|
|
2023-06-09 22:26:34 +00:00
|
|
|
http_archive(
|
|
|
|
name = "buildifier_prebuilt",
|
|
|
|
sha256 = "e46c16180bc49487bfd0f1ffa7345364718c57334fa0b5b67cb5f27eba10f309",
|
|
|
|
strip_prefix = "buildifier-prebuilt-6.1.0",
|
|
|
|
urls = [
|
|
|
|
"https://github.com/keith/buildifier-prebuilt/archive/6.1.0.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()
|