diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2018-05-10 10:06:22 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-05-10 10:07:14 -0700 |
commit | e2720f91dc2abbdb0c74f164e9f7602d37da9581 (patch) | |
tree | ef24ba9efe0920b9ecfadc445e4bd692f23b600f | |
parent | 3271d549f05f57c2ef4bbfe6a4cdf50eef1ba7a1 (diff) |
Put the http dependencies first in the WORKSPACE file.
PiperOrigin-RevId: 196131690
Change-Id: I3a4eec0dcca654380ea229e3ae388ca416200110
-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( |