You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
2 weeks ago
..
data Add comprehensive breaking changes documentation for v6 (#674) 5 months ago
cache-restore.test.ts Update default Go module caching to use go.mod (#705) 3 months ago
cache-utils.test.ts Update default Go module caching to use go.mod (#705) 3 months ago
setup-go.test.ts fix: parse `go-version-file` by content 2 weeks ago
utils.test.ts Update self-hosted environment validation and bump undici version (#556) 1 year ago
verify-go.sh Use GitHub releases to download Go versions. (#58) 6 years ago
windows-toolcache.test.ts Fix Install on Windows is very slow (#393) 3 years ago