mirror of
https://github.com/golang/go
synced 2024-11-19 00:44:40 -07:00
f340ed3ae2
The "Organize imports" code action uses internal/imports that needs a valid GOPATH set. Since Go 1.8 setting GOPATH manually is not required, and if it isn't set gopls will sometimes fail to properly import packages. This CL sets GOPATH to the default if the env var GOPATH isn't set. Fixes golang/go#33918. Change-Id: Ib63a26a801e15af730197999de4d1d4901694a30 Reviewed-on: https://go-review.googlesource.com/c/tools/+/191600 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com> |
||
---|---|---|
.. | ||
cache.go | ||
check.go | ||
external.go | ||
file.go | ||
gofile.go | ||
load.go | ||
modfile.go | ||
parse.go | ||
pkg.go | ||
session.go | ||
sumfile.go | ||
token.go | ||
view.go | ||
watcher.go |