aboutsummaryrefslogtreecommitdiff
path: root/WORKSPACE
diff options
context:
space:
mode:
authorJay Conrod <jayconrod@google.com>2020-11-19 17:27:23 -0500
committerGitHub <noreply@github.com>2020-11-19 17:27:23 -0500
commit7112248ff7498178ebabdba575dfd31dfd1c7a1a (patch)
treedaba46a05245a514aa6263f4f950fa51b2cca531 /WORKSPACE
parentb01b09e6cc4a584a00e71c3e5d8897b7d724663f (diff)
downloadbazelbuild-rules_go-7112248ff7498178ebabdba575dfd31dfd1c7a1a.tar.gz
go_download_sdk: download release table from golang.org/dl (#2729)
If the sdks attribute is not set, go_download_sdk will now download a list of available releases from https://golang.org/dl. If the version attribute is not set, go_download_sdk will pick the highest available version (and Bazel will tell users to set the version attribute for a reproducible build). Even if version is set, we need to download the release list in order to get the SHA-256 sums. Bazel won't cache downloads without an SHA-256 sum. go_register_toolchains now requires the version argument (previously named go_version, which is still allowed) if no toolchain was declared earlier. With this change, rules_go no longer requires an update after a new Go version is released. Fixes #2405
Diffstat (limited to 'WORKSPACE')
-rw-r--r--WORKSPACE2
1 files changed, 1 insertions, 1 deletions
diff --git a/WORKSPACE b/WORKSPACE
index a7727087..af8dcd64 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -6,7 +6,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe
go_rules_dependencies(is_rules_go = True)
-go_register_toolchains()
+go_register_toolchains(version = "1.15.5")
http_archive(
name = "com_google_protobuf",