cmd/go: go list -u -m upgrade behaviour should be better documented #39552
Labels
Documentation
Issues describing a change to documentation.
GoCommand
cmd/go
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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: