How version selection works with .tool-versions and go.mod
masterThe plugin uses different logic for selecting Go versions depending on the configuration file present:
.tool-versionsor.go-version: The exact version specified in the file is selected.go.mod: The highest compatible version currently installed is selected. This follows the Go modules reference: the highest minor version with a matching major version (e.g., ago 1.14directive selects the highest installed1.x.xversion wherexis at least14).
Note: You can explicitly enable or disable go.mod and go.work version selection by setting the ASDF_GOLANG_MOD_VERSION_ENABLED environment variable. It defaults to true.