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)