File tree 1 file changed +3
-1
lines changed 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2016,7 +2016,9 @@ A version query may be one of the following:
2016
2016
(for example, a pre-release), ` upgrade ` will select the current version.
2017
2017
* The string ` patch ` , which selects the latest available version with the same
2018
2018
major and minor version numbers as the currently required version. If no
2019
- version is currently required, ` patch ` is equivalent to ` latest ` .
2019
+ version is currently required, ` patch ` is equivalent to ` latest ` . Since
2020
+ Go 1.16, [ ` go get ` ] ( #go-get ) requires a current version when using ` patch `
2021
+ (but the ` -u=patch ` flag does not have this requirement).
2020
2022
2021
2023
Except for queries for specific named versions or revisions, all queries
2022
2024
consider available versions reported by ` go list -m -versions ` (see [ `go list
You can’t perform that action at this time.
0 commit comments