mirror of
https://github.com/golang/go
synced 2024-11-06 13:36:12 -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> |
||
---|---|---|
.. | ||
testdata/mod | ||
fix_test.go | ||
fix.go | ||
imports_test.go | ||
imports.go | ||
mkindex.go | ||
mkstdlib.go | ||
mod_112_test.go | ||
mod_cache_test.go | ||
mod_cache.go | ||
mod_test.go | ||
mod.go | ||
proxy_112_test.go | ||
proxy_113_test.go | ||
sortimports.go | ||
zstdlib.go |