x/vgo: vgo build ignores import comment #24188
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?What did you do?
I followed the vgo tour at https://research.swtch.com/vgo-cmd.
I forked rsc.io/quote repo to my own at https://github.com/cybrcodr/quote.
I have a go-import redirect at https://go.cybrcodr.net/quote that produces ...
I rewrote hello.go ...
with go.mod ...
Note that quote.go still has
See https://github.com/cybrcodr/quote/blob/v1.5.2/quote.go#L6
vgo build
builds fine. Note thatvgo get
also fetches the package without any failures. I then attempted to use normalgo get
which showed an error because I forgot to update the import comment.What did you expect to see?
Unless it is expected for vgo to ignore import comments, it should probably error out like normal go does.
The text was updated successfully, but these errors were encountered: