diff options
Diffstat (limited to 'WORKSPACE')
-rw-r--r-- | WORKSPACE | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -1,15 +1,21 @@ -# Depend on the go bazel rules. +# Load go bazel rules and toolchain. http_archive( name = "io_bazel_rules_go", url = "https://github.com/bazelbuild/rules_go/releases/download/0.12.0/rules_go-0.12.0.tar.gz", sha256 = "c1f52b8789218bb1542ed362c4f7de7052abcf254d865d96fb7ba6d44bc15ee3", ) - -# Load go bazel rules and toolchain. -load("@io_bazel_rules_go//go:def.bzl", "go_repository", "go_rules_dependencies", "go_register_toolchains") +load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains") go_rules_dependencies() go_register_toolchains(go_version="1.10.2") +# Load gazelle, which is needed for external go dependencies. +http_archive( + name = "bazel_gazelle", + url = "https://github.com/bazelbuild/bazel-gazelle/releases/download/0.12.0/bazel-gazelle-0.12.0.tar.gz", + sha256 = "ddedc7aaeb61f2654d7d7d4fd7940052ea992ccdb031b8f9797ed143ac7e8d43", +) +load("@bazel_gazelle//:deps.bzl", "go_repository") + # Add dependencies on external repositories. go_repository( name = "com_github_google_go-cmp", |