You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have used a package on golang.org/x/text and vendor it on our projects. We set our project as a GOPATH. Then when we compile it, it will fail and return the error.
I think this is caused by goroot/src/vendor which added on go1.13. We can find golang.org/x/ packages on that. When compiling, go will find that vendor at first but not the vendor on gopath.
12:2: use of vendored package not allowed
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?go1.13
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
set the project as a gopath root and then
What did you expect to see?
Compile succeed
What did you see instead?
We have used a package on
golang.org/x/text
and vendor it on our projects. We set our project as a GOPATH. Then when we compile it, it will fail and return the error.I think this is caused by
goroot/src/vendor
which added on go1.13. We can find golang.org/x/ packages on that. When compiling, go will find that vendor at first but not the vendor on gopath.The text was updated successfully, but these errors were encountered: