From 2ca9f3e9e22b14539b994f27d3975dd377577410 Mon Sep 17 00:00:00 2001 From: Isaac Diamond Date: Mon, 11 Mar 2019 21:49:51 -0700 Subject: [PATCH] Update rules_go calls to match Envoy WORKSPACE Signed-off-by: Isaac Diamond --- WORKSPACE | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index d80d5e05a..fc1324cb0 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -5,7 +5,7 @@ local_repository( path = "envoy", ) -load("@envoy//bazel:repositories.bzl", "envoy_dependencies") +load("@envoy//bazel:repositories.bzl", "envoy_dependencies", "GO_VERSION") load("@envoy//bazel:cc_configure.bzl", "cc_configure") envoy_dependencies() @@ -19,8 +19,7 @@ cc_configure() load("@envoy_api//bazel:repositories.bzl", "api_dependencies") api_dependencies() -load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains") +load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") + go_rules_dependencies() -go_register_toolchains() -load("@io_bazel_rules_go//proto:def.bzl", "proto_register_toolchains") -proto_register_toolchains() +go_register_toolchains(go_version = GO_VERSION)