Commit Graph

11 Commits (c48be820a87fae549b408c4f6903116f481f9282)

Author SHA1 Message Date
Arne Jørgensen 27a670ec1a
Add support for rc and beta versions in go.mod file
The regex in `parseGoVersionFile()` didn't consider rc and beta
versions. The regex has been extended.

In `findMatch()` the match is checked using `semver.satisfies()`. But
`semver.satisfies()` doesn't no about Go's non-semver rc and beta
version formats (1.16c1 instead of 1.16.0-rc.1).

We cannot use `makeSemver()` on `versionSpec` and compare the result
using `semver.satisfies()` because `versionSpec` could be, well, a
spec. Instead we first check if there is a strict match between the
candidate version and the versionSpec.

Fixes #525.
4 weeks ago
mahabaleshwars f3787be646
Add comprehensive breaking changes documentation for v6 (#674)
* v6 documentation update

* v6 documentation update

* Readme file update

* update documentation

* documentation update

* update documentation

* Updated documentation

* Updated Documentation

* documentation update

* update documentation. action.yml and versions.yml

* Update documentation to organize go-version-file

* update v6 features and improve version patterns table

* Update documentation to specify supported syntaxes for `go-version` input
5 months ago
priya-kinthali faf52423ec
Add support for .tool-versions file in setup-go, update workflow (#673)
* setup go in local

* add .tool-versions file support
6 months ago
HarithaVattikuti 4ab57d7ea2
Fix versions check failure (#479)
* Update to latest Go versions

* Updated versions

* Update test data

* Update test data
2 years ago
koba1t 7678c83214
add support gowork for go-version-file 4 years ago
So Jomura 265edc1beb
Add go-version-file option (#62) 4 years ago
Dmitry Shibanov bfdd3570ce
Implement "check-latest" flag to check if pre-cached version is latest one (#186) 4 years ago
Dmitry Shibanov 1616116e1b
Use GitHub releases to download Go versions. (#58) 6 years ago
Bryan MacFarlane f4b0281c15 mocked tests work with no internet 6 years ago
Alif Rachmawadi 21620fff65
use golang-dl release data 7 years ago
Alif Rachmawadi 632d18fc92 Handle .x version syntax with latest release (#13)
* get latest release for .x syntax version

* added nock as dev dependency

* added test for .x syntax

* updated readme

* updated http client name

* use rest client for getting available versions

* more .x handling

* move nock to setup and teardown
7 years ago