mirror of https://github.com/actions/setup-go.git
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.
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 | 5 months ago | |
| cache-restore.test.ts | 3 months ago | |
| cache-utils.test.ts | 3 months ago | |
| setup-go.test.ts | 2 weeks ago | |
| utils.test.ts | 1 year ago | |
| verify-go.sh | 6 years ago | |
| windows-toolcache.test.ts | 3 years ago | |