You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Go SDK >= 1.20, nocoverageredesign is always used in GOEXPERIMENT (go/private/sdk.bzl#L504-L508).
And the stdlib and stdliblist is generated using this Go env:
gopackagesdriver (and maybe //go/tools/go_bin_runner ?) should use the GOEXPERIMENT (and certainly also CGO_ENABLED) env variable of the Go SDK to initialize the build context to filter all files.
This breach breaks the load of a package with packages.Load() with tests:
When using Go SDK >= 1.20,
nocoverageredesign
is always used in GOEXPERIMENT (go/private/sdk.bzl#L504-L508).And the
stdlib
andstdliblist
is generated using this Go env:But
gopackagesdriver
does not return this source file of thegoexperiment
stdlib package:gopackagesdriver
(and maybe//go/tools/go_bin_runner
?) should use the GOEXPERIMENT (and certainly also CGO_ENABLED) env variable of the Go SDK to initialize the build context to filter all files.This breach breaks the load of a package with
packages.Load()
with tests:A dirty hack solution is to manually add
export GOEXPERIMENT=nocoverageredesign
in thegopackagesdriver
wrapper script.v0.50.1
7.3.1
1.23.1
The text was updated successfully, but these errors were encountered: