cmd/go: go list -u -m upgrade behaviour should be better documented #39552
Comments
This is working as intended, but the documentation for
|
Yes, I'm now sure that this is doing the right thing, but it was confusing to me even after I'd read through the docs. Rather than closing it, I'll retitle this issue to something a bit more specific than #33637 because ISTM that this particular aspect of the docs might easily fall between the cracks again. |
go version go1.14.4 linux/amd64
The
go list -m -u
command (and alsogo get
with no explicit version) does not always suggest an upgrade to the latest available version number. In this case, the commit date forjmoiron/sql@v1.2.0
is earlier than the commit date for the current pseudo-version, but it's not clear from the documentation, which says:whether "newer" means "later version number" (in which case I'd expect it to suggest
v1.2.0
) or "latest commit date" (in which case the suggestion is right). If it really is "latest commit date", then I'd be concerned about backports - a backport of a fix from a later version could then prevent automatic upgrades to the appropriate latest version.I think this could at least use some clarification in the docs.
Here's a reproducer for the issue (run with the testscript command):
The text was updated successfully, but these errors were encountered: