x/tools/cmd/goimports: GOPATH not honored with absolute file paths #16458
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.5.4 linux/amd64
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/akavel/gopath/src/zpaslab.com/lockerbox/_vendor:/home/akavel/gopath"
GORACE=""
GOROOT="/home/akavel/go"
GOTOOLDIR="/home/akavel/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT=""
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
I've upgraded goimports, following the recent "it's now faster" announcement. I retained the old binary, and now I have 2 binaries:
Depending whether I run the new one with relative or absolute path to source file, import gets found or not:
Additional notes:
_vendor/
, e.g."zpaslab.com/lockerbox/db"
"testing"
)All versions would find the import:
The text was updated successfully, but these errors were encountered: