cmd/go: Canonical paths should be enforced on vendored imports #19224
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
I have a package which vendors packages with Canonical Imports. Build worked fine when the imports were vendored but failed when the packages were moved into the GOPATH. This is because canonical import paths are not enforced on vendored packages.
What version of Go are you using (
go version
)?From vendor support merging to latest master (a355639)
What did you do?
go build .
What did you expect to see?
mypackage.go:8:2: code in directory $GOPATH/vendor/github.com/rsc/pdf expects import "rsc.io/pdf"
What did you see instead?
Nothing. (Command exited with success.)
The text was updated successfully, but these errors were encountered: