-
Notifications
You must be signed in to change notification settings - Fork 18k
x/vgo: do not add refs to non-module v2.0.0 during go.mod auto-creation #24585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
vgo version tested: |
vgo does not allow depending on packages >v1 without a go.mod file |
To clarify, running |
Sorry I meant the dependency must have a go.mod file to use v2+ |
In that case I think the proper fix should be that while generating |
Yeah, but I think a new bug report on that is better. Unless you want to try and repurpose this issue by changing the title and description. |
Title updated. |
Yes, the problem is that the auto-converter for some reason decided to use v2.0.0 instead of a pseudo-commit. |
Change https://golang.org/cl/107660 mentions this issue: |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
The repo to reproduce this issue is https://github.com/fishy/gcsbucket (at time of reporting,
HEAD
is at618d60fe84e06f5e695a7be52566b40d198191a5
). It importscloud.google.com/go/storage
(and alsogithub.com/fishy/fsdb
, but that one doesn't have any other 3rd party dependencies).Running
vgo build
the first time builds successfully, generatinggo.mod
file:Then running
vgo build
again will complain about:The text was updated successfully, but these errors were encountered: