Bazel: Update dependencies for Bazel
Fixes a TODO where we're pulling in a git commit
@@ -17,21 +17,21 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
http_archive(
name = "io_bazel_rules_go",
- url = "https://github.com/bazelbuild/rules_go/releases/download/0.16.5/rules_go-0.16.5.tar.gz",
- sha256 = "7be7dc01f1e0afdba6c8eb2b43d2fa01c743be1b9273ab1eaf6c233df078d705",
+ sha256 = "ade51a315fa17347e5c31201fdc55aa5ffb913377aa315dceb56ee9725e620ee",
+ url = "https://github.com/bazelbuild/rules_go/releases/download/0.16.6/rules_go-0.16.6.tar.gz",
)
-# TODO(EKF): Switch to a stable release once *_image.digest is available in one
-git_repository(
+http_archive(
name = "io_bazel_rules_docker",
- commit = "a9bb1dab84cdf46e34d1b34b53a17bda129b5eba",
- remote = "https://github.com/bazelbuild/rules_docker",
+ sha256 = "aed1c249d4ec8f703edddf35cbe9dfaca0b5f5ea6e4cd9e83e99f3b0d1136c3d",
+ strip_prefix = "rules_docker-0.7.0",
+ urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.7.0.tar.gz"],
)
http_archive(
name = "bazel_gazelle",
- sha256 = "6e875ab4b6bf64a38c352887760f21203ab054676d9c1b274963907e0768740d",
- urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.15.0/bazel-gazelle-0.15.0.tar.gz"],
+ sha256 = "7949fc6cc17b5b191103e97481cf8889217263acf52e00b560683413af204fcb",
+ urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.16.0/bazel-gazelle-0.16.0.tar.gz"],
)
http_archive(
@@ -54,13 +54,21 @@ load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
gazelle_dependencies()
load(
- "@io_bazel_rules_docker//container:container.bzl",
- "container_pull",
+ "@io_bazel_rules_docker//toolchains/docker:toolchain.bzl",
+ docker_toolchain_configure = "toolchain_configure",
+)
+load(
+ "@io_bazel_rules_docker//repositories:repositories.bzl",
container_repositories = "repositories",
)
container_repositories()
+load(
+ "@io_bazel_rules_docker//container:container.bzl",
+ "container_pull",
+)
+
container_pull(
name = "golang-image",
registry = "registry.hub.docker.com",
