mirror of
https://github.com/golang/go
synced 2024-11-18 18:14:43 -07:00
95963e031d
The go tool will import a package with a import path that traverses symlinks with no problems, but goimports would remove that import because it would fail to recognize the package as existent. Fixes golang/go#14845 Note: if the file you are currently processing also has a name inside the symlink, you might have to use the "long" path for vendoring to work, as it wouldn't be recognized as "deeper" than the vendor folder otherwise. For example in this tree: . ├── myfile.go └── x ├── vendor │ └── mypkg │ └── foo.go └── y -> .. If myfile.go imports mypkg, you will have to process it as ./x/y/myfile.go, not ./myfile.go. Change-Id: Ic8f41baed3f28d4e9b813160d91aef09ece1fc9f Reviewed-on: https://go-review.googlesource.com/23803 Reviewed-by: Andrew Gerrand <adg@golang.org> Run-TryBot: Andrew Gerrand <adg@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
---|---|---|
.. | ||
fix_test.go | ||
fix.go | ||
imports.go | ||
mkindex.go | ||
mkstdlib.go | ||
sortimports.go | ||
zstdlib.go |