setup-go/__tests__
Dwi Siswanto 493769a1ce
fix: parse go-version-file by content
The `parseGoVersionFile` function used to only
check for exact filenames like "go.{mod,work}".
When `go-version-file` pointed to something like a
tools modfile ("go.tool.mod"), it would just dump
the whole file contents back, which then got
mistaken for a version spec and broke the
manifest/dist resolution.

Now it looks at the file content to spot Go module
or workspace files and pulls out the `toolchain`
or `go` directives. Left ".tool-versions" handling
alone.

Fixes #746

Signed-off-by: Dwi Siswanto <git@dw1.io>
2026-04-10 15:03:39 +07:00
..
data Add comprehensive breaking changes documentation for v6 (#674) 2025-11-19 09:40:16 -06:00
cache-restore.test.ts Update default Go module caching to use go.mod (#705) 2026-01-26 10:59:03 -06:00
cache-utils.test.ts Update default Go module caching to use go.mod (#705) 2026-01-26 10:59:03 -06:00
setup-go.test.ts fix: parse go-version-file by content 2026-04-10 15:03:39 +07:00
utils.test.ts Update self-hosted environment validation and bump undici version (#556) 2025-04-01 10:32:30 -05:00
verify-go.sh Use GitHub releases to download Go versions. (#58) 2020-06-29 11:41:13 -04:00
windows-toolcache.test.ts Fix Install on Windows is very slow (#393) 2023-08-03 14:33:56 +02:00