x/tools/gopls: centralize all "go env X" calls #36487
Closed
Milestone
Comments
Change https://golang.org/cl/214417 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We've started relying on a number of calls to
go env
to build up various pieces of the view. At minimum right now, we callgo env GOPATH
for thegoimports
process env function,go env GOMOD
for the -modfile handling, and nowgo env GOCACHE
to detect test mains. All of these should be consolidated into a singlego env
call that happens on view creation.The text was updated successfully, but these errors were encountered: