From ae42813eef8a2e54dedb27516fc7fe2d458e0710 Mon Sep 17 00:00:00 2001 From: Lizan Zhou Date: Mon, 6 Nov 2023 17:39:12 -0800 Subject: [PATCH] go: add experiments=nocoverageredesign for go_sdk in 1.20+ --- toolchains/go/go.bzl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/toolchains/go/go.bzl b/toolchains/go/go.bzl index cb3669f35..a40c2ac64 100644 --- a/toolchains/go/go.bzl +++ b/toolchains/go/go.bzl @@ -81,8 +81,13 @@ def go_sdk_for_arch(go_version): ), ) + experiments = [] + if go_version.split('.')[0] == '1' and int(go_version.split('.')[1]) >= 20: + experiments = ["nocoverageredesign"] + go_sdk( name = "go_sdk", + experiments = experiments, goos = "{goos}", goarch = "{goarch}", root_file = "ROOT",