Commit Graph

5 Commits

Author SHA1 Message Date
Kenny Parnell
c38b6d3ed2
Don't call back into asdf list golang (#93) 2022-12-16 23:43:41 -05:00
Craig Furman
bc51a8097f
Use highest matching minor version from go.mod (#50)
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
2021-06-16 08:04:20 -04:00
Kenny Parnell
b1990b0a23
Add bin/download per latest asdf guidelines (#45)
- Creates a temporary directory if using an older version of asdf.
- Install delegates to bin/download if using an older version of asdf.
2021-01-04 17:36:54 -05:00
Michael Hale
9297fbefb1
Find the most recent matching installed version (#34)
* Find the most recent matching installed version

* pin match to beginning of string
2020-07-13 16:30:56 -04:00
Michael Hale
b7780500cf
Extract version from go.mod files (#32)
* Extract version from go.mod files

* make it work on linux too

* whitespace

* ignore asdf testing checkout

* fix test
2020-06-16 18:08:17 -04:00