mirror of
https://github.com/golang/go
synced 2024-11-19 02:04:42 -07:00
c886270503
When running in GOROOT/src, `go list -m all` shows the std package (or cmd package) as the main module. This confuses goimports into adding std/ or cmd/ at the beginning of import paths. Skip canonicalization for paths under GOROOT. Fixes golang/go#31814 Change-Id: Iff5cc7e2a2053e4cc87c1a579a4c47d856cd0a2e Reviewed-on: https://go-review.googlesource.com/c/tools/+/195063 Run-TryBot: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com> |
||
---|---|---|
.. | ||
apidiff | ||
fastwalk | ||
gopathwalk | ||
imports | ||
jsonrpc2 | ||
lsp | ||
memoize | ||
module | ||
semver | ||
span | ||
telemetry | ||
testenv | ||
tool | ||
txtar | ||
xcontext |