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
x/vgo: ignores the specified version and changes it to a random version #25375
Comments
Here's what I think is going on: If you change the major version in When you change the version to When version selection occurs, the pseudo-version commit will be used to resolve the |
That makes sense, but IMHO this needs to be fixed in vgo, a lot of repos are already using v2+ tags, not adding a way to support them and assuming they will add vgo support on their own is really gonna be painful to deal with. |
The pseudo-version in the updated |
It's rather confusing that vgo modifies the file on read-only operation (vgo list, vgo build, etc). |
Ok, will follow up on #25412. |
What version of Go are you using (
go version
)?Bug repo: https://github.com/OneOfOne/vgo-bug
Steps to reproduce
Starting with just
module github.com/OneOfOne/vgo-bug
in go.mod:go get github.com/OneOfOne/vgo-bug
(go
notvgo
).cd $GOROOT/src/go get github.com/OneOfOne/vgo-bug
.edit go.mod and change
v1.3.7
tov2.2.6
(latest on github).This isn't the same as #24585, however it might be a dup of #25007 based on the last comment in it.
The text was updated successfully, but these errors were encountered: