Skip to content

Commit

Permalink
go: add experiments=nocoverageredesign for go_sdk in 1.20+
Browse files Browse the repository at this point in the history
  • Loading branch information
lizan committed Nov 7, 2023
1 parent 3368061 commit ae42813
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions toolchains/go/go.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ae42813

Please sign in to comment.