cmd/go: modfetch.Query omits mismatched major versions #26333
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What did you do?
vgo mod -init && vgo mod -sync
What did you expect to see?
Generate a correct
go.mod
What did you see instead?
When I ran
mod sync
for my new project, vgo getk8s.io/client-go latest
for me. But the result isk8s.io/client-go v1.5.1
, It's too old, so the error occurred that some dirs not found. The import pathk8s.io/client-go
parsed asv1
by vgo, so the matched latest version isv1.5.1
.Actually, I need
k8s.io/client-go v7.0.0
. https://github.com/kubernetes/client-go/releases/tag/v7.0.0I know this is basically working as intended, but maybe we need to handle this for old code and users. We should make users feel that using vgo is very simple.
The text was updated successfully, but these errors were encountered: