mirror of
https://github.com/kennyp/asdf-golang.git
synced 2024-10-06 04:32:07 +08:00
bc51a8097f
The go directive in go.mod files is of the format `major.minor`. This commit will allow the highest installed version of go with the same major component to be selected. The previous behaviour was to use the highest installed version with the same major _and_ minor components, but I don't think this was strictly necessary. It is valid to use go 1.16 to build a project whose go.mod declares "go 1.14", for example. For packages within the module, the compiler should reject use of language features introduced after the version specified by the go directive. I think this adheres more closely to the expected behaviour of programs that parse `go.mod`, and asdf users who need to pin a particular minor or patch version of go can use `.tool-versions` or `.go-version`. Source: https://golang.org/ref/mod#go-mod-file-go |
||
---|---|---|
.. | ||
download | ||
exec-env | ||
help.deps | ||
help.links | ||
help.overview | ||
install | ||
list-all | ||
list-bin-paths | ||
list-legacy-filenames | ||
parse-legacy-file | ||
uninstall |