diff options
Diffstat (limited to 'WORKSPACE')
-rw-r--r-- | WORKSPACE | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -1,20 +1,19 @@ -# Load go bazel rules and toolchain. +# Load go bazel rules and gazelle. 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("@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") +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("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") +gazelle_dependencies() # Add dependencies on external repositories. go_repository( |