1
0
mirror of https://github.com/golang/go synced 2024-09-30 22:58:34 -06:00
go/imports
Russ Cox 893c2b1ff5 imports: assume import x/y/v2 is package y
This will be true in general for Go modules, so it's the right fallback.
Note that if the package can be found in GOPATH, the code still
uses the actual package name from GOPATH, so this only changes
the fallback path. The fallback path is what currently executes
when using modules (because they are not in GOPATH).

Change-Id: I3d48517583eae9431e139371d363ce354c89340a
Reviewed-on: https://go-review.googlesource.com/122616
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-07-09 16:22:11 +00:00
..
fix_test.go imports: assume import x/y/v2 is package y 2018-07-09 16:22:11 +00:00
fix.go imports: assume import x/y/v2 is package y 2018-07-09 16:22:11 +00:00
imports.go imports: Process should accept nil src 2018-04-12 23:47:31 +00:00
mkindex.go go.tools/imports: move goimports from github to go.tools. 2013-12-17 21:21:03 -05:00
mkstdlib.go imports: update zstdlib to Go 1.10 2018-02-10 03:09:51 +00:00
sortimports.go imports: fixup comments on import lines correctly 2018-07-02 20:27:37 +00:00
zstdlib.go imports: update zstdlib to Go 1.10 2018-02-10 03:09:51 +00:00