Switch go_modules from getUpdatedVersion
to a public go
command
#3599
Labels
T: bug 🐞
Something isn't working
getUpdatedVersion
to a public go
command
#3599
See discussion here: #3590 (comment)
In particular:
And @thepwagner pointed out:
The one thing to note is that
go list
,go get
etc download modules. I'm not sure the existinggetUpdatedVersion
does that. I haven't looked into how it works. But from a speed/network chattiness, avoiding downloading modules is a big win. Although on the flip side, from a correctness point of view, public APIs likego list
,go get
etc will probably do a better job of navigating any issues such as retracted versions, pre-release versions, etc.Also the guts of how all that upstream code works, regardless of whether accessed via
getUpdatedVersion
orgo list
and friends, is going to change a lot in go 1.17 when lazy module loading lands. That may also greatly affect correctness/speed, unclear at this point.Fixing this would implicitly fix #3569.
The text was updated successfully, but these errors were encountered: