setup-go/docs
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
..
adrs feat: bump to use actions/checkout@v4 2023-09-05 11:42:39 -04:00
advanced-usage.md fix: parse go-version-file by content 2026-04-10 15:03:39 +07:00
contributors.md Remove the description of the old go.mod specification (#458) 2024-04-18 08:33:57 -05:00