1
0
mirror of https://github.com/golang/go synced 2024-11-18 23:05:06 -07:00
go/internal/imports
Heschi Kreinick c886270503 internal/imports: don't prefix stdlib package with std/
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>
2019-09-18 19:29:07 +00:00
..
testdata/mod imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
fix_test.go internal/imports: don't prefix stdlib package with std/ 2019-09-18 19:29:07 +00:00
fix.go internal/imports: get candidate imports 2019-08-16 16:26:37 +00:00
imports_test.go all: skip more memory-intensive tests on linux-arm 2019-08-30 17:05:41 +00:00
imports.go internal/imports: get candidate imports 2019-08-16 16:26:37 +00:00
mkindex.go imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
mkstdlib.go internal/imports: add all interfaces in mkstdlib 2019-09-10 20:25:02 +00:00
mod_112_test.go imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
mod_cache_test.go internal/imports: skip scanned module cache dirs 2019-08-29 21:03:13 +00:00
mod_cache.go internal/imports: skip scanned module cache dirs 2019-08-29 21:03:13 +00:00
mod_test.go all: fix more typos 2019-09-11 15:13:14 +00:00
mod.go internal/imports: don't prefix stdlib package with std/ 2019-09-18 19:29:07 +00:00
proxy_112_test.go imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
proxy_113_test.go imports: rename to internal/imports 2019-05-20 21:49:35 +00:00
sortimports.go internal/imports: merge import declarations 2019-08-14 23:54:02 +00:00
zstdlib.go internal/imports: add all interfaces in mkstdlib 2019-09-10 20:25:02 +00:00