5
0
Fork 0
mirror of https://github.com/actions/setup-go.git synced 2025-12-27 17:08:16 +00:00
setup-go/__tests__/data
Arne Jørgensen 9fbf6fbc10
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.
2025-12-18 10:28:45 +01:00
..
.go-version Add comprehensive breaking changes documentation for v6 (#674) 2025-11-19 09:40:16 -06:00
.tool-versions Add support for .tool-versions file in setup-go, update workflow (#673) 2025-10-28 10:26:52 -05:00
go.mod Fix versions check failure (#479) 2024-05-10 11:25:20 -05:00
go.work Fix versions check failure (#479) 2024-05-10 11:25:20 -05:00
golang-dl.json Add support for rc and beta versions in go.mod file 2025-12-18 10:28:45 +01:00
versions-manifest.json Implement "check-latest" flag to check if pre-cached version is latest one (#186) 2022-02-09 14:59:04 +03:00