2017-10-10 14:59:31 +00:00
|
|
|
workspace(name = "bazel_skylib")
|
2018-12-04 15:14:08 +00:00
|
|
|
|
2019-08-13 19:28:45 +00:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
2019-10-02 15:15:53 +00:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
|
|
|
|
|
|
|
|
maybe(
|
2021-10-27 13:13:59 +00:00
|
|
|
name = "io_bazel_rules_go",
|
2020-02-18 18:17:37 +00:00
|
|
|
repo_rule = http_archive,
|
2021-10-27 13:13:59 +00:00
|
|
|
sha256 = "2b1641428dff9018f9e85c0384f03ec6c10660d935b750e3fa1492a281a53b0f",
|
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip",
|
|
|
|
"https://github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip",
|
|
|
|
],
|
2019-08-13 19:28:45 +00:00
|
|
|
)
|
|
|
|
|
2021-10-27 13:13:59 +00:00
|
|
|
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
|
2019-02-28 22:43:57 +00:00
|
|
|
|
2021-10-27 13:13:59 +00:00
|
|
|
go_rules_dependencies()
|
2020-06-26 15:04:12 +00:00
|
|
|
|
2021-10-27 13:13:59 +00:00
|
|
|
go_register_toolchains(version = "1.17.1")
|
2020-06-26 15:04:12 +00:00
|
|
|
|
2019-02-28 22:43:57 +00:00
|
|
|
# Below this line is for documentation generation only,
|
|
|
|
# and should thus not be included by dependencies on
|
|
|
|
# bazel-skylib.
|
|
|
|
|
2021-10-27 13:13:59 +00:00
|
|
|
maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "io_bazel_stardoc",
|
|
|
|
sha256 = "c9794dcc8026a30ff67cf7cf91ebe245ca294b20b071845d12c192afe243ad72",
|
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/stardoc/releases/download/0.5.0/stardoc-0.5.0.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/stardoc/releases/download/0.5.0/stardoc-0.5.0.tar.gz",
|
|
|
|
],
|
|
|
|
)
|
2019-03-07 22:22:04 +00:00
|
|
|
|
2021-10-27 13:13:59 +00:00
|
|
|
load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories")
|
2019-03-07 22:22:04 +00:00
|
|
|
|
2021-10-27 13:13:59 +00:00
|
|
|
stardoc_repositories()
|
2019-03-07 22:22:04 +00:00
|
|
|
|
2021-10-27 13:13:59 +00:00
|
|
|
maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "rules_pkg",
|
|
|
|
sha256 = "a89e203d3cf264e564fcb96b6e06dd70bc0557356eb48400ce4b5d97c2c3720d",
|
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.5.1/rules_pkg-0.5.1.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/rules_pkg/releases/download/0.5.1/rules_pkg-0.5.1.tar.gz",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
|
|
|
|
|
|
|
|
rules_pkg_dependencies()
|
2019-09-17 12:03:22 +00:00
|
|
|
|
2019-10-02 15:15:53 +00:00
|
|
|
maybe(
|
2019-09-17 12:03:22 +00:00
|
|
|
name = "rules_cc",
|
2020-02-18 18:17:37 +00:00
|
|
|
repo_rule = http_archive,
|
2021-10-27 13:13:59 +00:00
|
|
|
sha256 = "4dccbfd22c0def164c8f47458bd50e0c7148f3d92002cdb459c2a96a68498241",
|
2019-09-17 12:03:22 +00:00
|
|
|
urls = [
|
2021-10-27 13:13:59 +00:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/rules_cc/releases/download/0.0.1/rules_cc-0.0.1.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/rules_cc/releases/download/0.0.1/rules_cc-0.0.1.tar.gz",
|
2019-09-17 12:03:22 +00:00
|
|
|
],
|
|
|
|
)
|
2020-06-26 15:04:12 +00:00
|
|
|
|
2021-10-27 13:13:59 +00:00
|
|
|
load("//lib:unittest.bzl", "register_unittest_toolchains")
|
|
|
|
|
|
|
|
register_unittest_toolchains()
|
|
|
|
|
2020-06-26 15:04:12 +00:00
|
|
|
# Provide a repository hint for Gazelle to inform it that the go package
|
|
|
|
# github.com/bazelbuild/rules_go is available from io_bazel_rules_go and it
|
|
|
|
# doesn't need to duplicatively fetch it.
|
|
|
|
# gazelle:repository go_repository name=io_bazel_rules_go importpath=github.com/bazelbuild/rules_go
|
|
|
|
http_archive(
|
|
|
|
name = "bazel_gazelle",
|
2021-10-27 13:13:59 +00:00
|
|
|
sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb",
|
2020-06-26 15:04:12 +00:00
|
|
|
urls = [
|
2021-10-27 13:13:59 +00:00
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
|
|
|
|
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
|
2020-06-26 15:04:12 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
# Another Gazelle repository hint.
|
|
|
|
# gazelle:repository go_repository name=bazel_gazelle importpath=github.com/bazelbuild/bazel-gazelle/testtools
|
|
|
|
|
|
|
|
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
|
|
|
|
|
|
|
|
gazelle_dependencies()
|