actions/setup-go
### [`v3.1.0`](https://togithub.com/actions/setup-go/releases/tag/v3.1.0)
[Compare Source](https://togithub.com/actions/setup-go/compare/v3.0.0...v3.1.0)
##### Adding Go version file support
In scope of this release we add the [go-version-file](https://togithub.com/actions/setup-go/pull/62) input. The new input (`go-version-file`) provides functionality to specify the path to the file containing Go version with such behaviour:
- If the file does not exist the action will throw an error.
- If you specify both go-version and go-version-file inputs, the action will use value from the go-version input and throw the following warning: Both go-version and go-version-file inputs are specified, only go-version will be used.
- For now the action supports .go-version and go.mod files.
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'path/to/go.mod'
- run: go version
```
Besides, the following pull requests included in this release:
- Fix condition for GOPATH output [https://github.com/actions/setup-go/pull/221](https://togithub.com/actions/setup-go/pull/221)
- Added go-version output [https://github.com/actions/setup-go/pull/85](https://togithub.com/actions/setup-go/pull/85)
- Do not export GOROOT for Go versions >= 1.9 [https://github.com/actions/setup-go/pull/175](https://togithub.com/actions/setup-go/pull/175)
- Update [@zeit/ncc](https://togithub.com/zeit/ncc) to [@vercel/ncc](https://togithub.com/vercel/ncc) [https://github.com/actions/setup-go/pull/229](https://togithub.com/actions/setup-go/pull/229)
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR contains the following updates:
v3.0.0
->v3.1.0
Release Notes
actions/setup-go
### [`v3.1.0`](https://togithub.com/actions/setup-go/releases/tag/v3.1.0) [Compare Source](https://togithub.com/actions/setup-go/compare/v3.0.0...v3.1.0) ##### Adding Go version file support In scope of this release we add the [go-version-file](https://togithub.com/actions/setup-go/pull/62) input. The new input (`go-version-file`) provides functionality to specify the path to the file containing Go version with such behaviour: - If the file does not exist the action will throw an error. - If you specify both go-version and go-version-file inputs, the action will use value from the go-version input and throw the following warning: Both go-version and go-version-file inputs are specified, only go-version will be used. - For now the action supports .go-version and go.mod files. ```yaml steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version-file: 'path/to/go.mod' - run: go version ``` Besides, the following pull requests included in this release: - Fix condition for GOPATH output [https://github.com/actions/setup-go/pull/221](https://togithub.com/actions/setup-go/pull/221) - Added go-version output [https://github.com/actions/setup-go/pull/85](https://togithub.com/actions/setup-go/pull/85) - Do not export GOROOT for Go versions >= 1.9 [https://github.com/actions/setup-go/pull/175](https://togithub.com/actions/setup-go/pull/175) - Update [@zeit/ncc](https://togithub.com/zeit/ncc) to [@vercel/ncc](https://togithub.com/vercel/ncc) [https://github.com/actions/setup-go/pull/229](https://togithub.com/actions/setup-go/pull/229)Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.