cmd/go: vendoring does not work for main package directly in $GOPATH/src #19899
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.8
What operating system and processor architecture are you using (
go env
)?amd64
What did you do?
I have a main.go just in $GOPATH/src/,any other works well for this project. But if I import something in this main.go and put the packages in vendor directory, go build will report an error.
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
vendoring should work for the main package in $GOPATH/src
What did you see instead?
The text was updated successfully, but these errors were encountered: