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
gopls/internal/test: fix failures when running tests with GOTOOLCHAIN
Gopls integration tests want to use the ambient Go toolchain, to test
integration with older Go commands. But GOTOOLCHAIN injects the
toolchain binary into PATH, so gopls must remove this injected path
element before it runs the go command.
Unfortunately, if GOTOOLCHAIN=go1.N.P explicitly, those tests will also
try to *download* the explicit toolchain and fail because we have set
GOPROXY to a file based proxy.
Fix this by first adding a check that the initial workspace load did not
fail, as well as other related error annotations such that the failure
message more accurately identifies the problem. Additionally, the
preceding CL improved the integration test framework to better surface
such errors. Then, actually fix the problem by setting GOTOOLCHAIN=local
in our integration test sandbox.
Change-Id: I8c7e9f10d1c17143f10be42476caf29021ab63e0
Reviewed-on: https://go-review.googlesource.com/c/tools/+/651418
Reviewed-by: Alan Donovan <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Auto-Submit: Robert Findley <[email protected]>
0 commit comments