actions/setup-go
### [`v4.0.0`](https://togithub.com/actions/setup-go/releases/tag/v4.0.0)
[Compare Source](https://togithub.com/actions/setup-go/compare/v3.5.0...v4.0.0)
In scope of release we enable cache by default. The action won’t throw an error if the cache can’t be restored or saved. The action will throw a warning message but it won’t stop a build process. The cache can be disabled by specifying `cache: false`.
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ‘1.19’
- run: go run hello.go
```
Besides, we introduce such changes as
- [Allow to use only GOCACHE for cache](https://togithub.com/actions/setup-go/pull/305)
- [Bump json5 from 2.2.1 to 2.2.3](https://togithub.com/actions/setup-go/pull/315)
- [Use proper version for primary key in cache](https://togithub.com/actions/setup-go/pull/323)
- [Always add Go bin to the PATH](https://togithub.com/actions/setup-go/pull/351)
- [Add step warning if go-version input is empty](https://togithub.com/actions/setup-go/pull/350)
### [`v3.5.0`](https://togithub.com/actions/setup-go/releases/tag/v3.5.0): Add support for stable and oldstable aliases
[Compare Source](https://togithub.com/actions/setup-go/compare/v3.4.0...v3.5.0)
In scope of this release we introduce aliases for the `go-version` input. The `stable` alias instals the latest stable version of Go. The `oldstable` alias installs previous latest minor release (the stable is 1.19.x -> the oldstable is 1.18.x).
##### Stable
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 'stable'
- run: go run hello.go
```
##### OldStable
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 'oldstable'
- run: go run hello.go
```
### [`v3.4.0`](https://togithub.com/actions/setup-go/releases/tag/v3.4.0): Add support for go.work and pass the token input through on GHES
[Compare Source](https://togithub.com/actions/setup-go/compare/v3.3.1...v3.4.0)
In scope of this release we added [support for go.work file to pass it in go-version-file input](https://togithub.com/actions/setup-go/pull/283).
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: go.work
- run: go run hello.go
```
Besides, we added support to [pass the token input through on GHES](https://togithub.com/actions/setup-go/pull/277).
### [`v3.3.1`](https://togithub.com/actions/setup-go/releases/tag/v3.3.1): Fix cache issues and update dependencies
[Compare Source](https://togithub.com/actions/setup-go/compare/v3.3.0...v3.3.1)
In scope of this release we fixed the issue with the correct generation of the cache key when the `go-version-file` input is set ([https://github.com/actions/setup-go/pull/267](https://togithub.com/actions/setup-go/pull/267)). Moreover, we fixed an issue when [the cache folder was not found](https://togithub.com/actions/setup-go/pull/264). Besides, we updated `actions/core` to 1.10.0 version ([https://github.com/actions/setup-go/pull/273](https://togithub.com/actions/setup-go/pull/273)).
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
v3.3.0
->v4.0.0
Release Notes
actions/setup-go
### [`v4.0.0`](https://togithub.com/actions/setup-go/releases/tag/v4.0.0) [Compare Source](https://togithub.com/actions/setup-go/compare/v3.5.0...v4.0.0) In scope of release we enable cache by default. The action won’t throw an error if the cache can’t be restored or saved. The action will throw a warning message but it won’t stop a build process. The cache can be disabled by specifying `cache: false`. ```yaml steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: go-version: ‘1.19’ - run: go run hello.go ``` Besides, we introduce such changes as - [Allow to use only GOCACHE for cache](https://togithub.com/actions/setup-go/pull/305) - [Bump json5 from 2.2.1 to 2.2.3](https://togithub.com/actions/setup-go/pull/315) - [Use proper version for primary key in cache](https://togithub.com/actions/setup-go/pull/323) - [Always add Go bin to the PATH](https://togithub.com/actions/setup-go/pull/351) - [Add step warning if go-version input is empty](https://togithub.com/actions/setup-go/pull/350) ### [`v3.5.0`](https://togithub.com/actions/setup-go/releases/tag/v3.5.0): Add support for stable and oldstable aliases [Compare Source](https://togithub.com/actions/setup-go/compare/v3.4.0...v3.5.0) In scope of this release we introduce aliases for the `go-version` input. The `stable` alias instals the latest stable version of Go. The `oldstable` alias installs previous latest minor release (the stable is 1.19.x -> the oldstable is 1.18.x). ##### Stable ```yaml steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: 'stable' - run: go run hello.go ``` ##### OldStable ```yaml steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: 'oldstable' - run: go run hello.go ``` ### [`v3.4.0`](https://togithub.com/actions/setup-go/releases/tag/v3.4.0): Add support for go.work and pass the token input through on GHES [Compare Source](https://togithub.com/actions/setup-go/compare/v3.3.1...v3.4.0) In scope of this release we added [support for go.work file to pass it in go-version-file input](https://togithub.com/actions/setup-go/pull/283). ```yaml steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version-file: go.work - run: go run hello.go ``` Besides, we added support to [pass the token input through on GHES](https://togithub.com/actions/setup-go/pull/277). ### [`v3.3.1`](https://togithub.com/actions/setup-go/releases/tag/v3.3.1): Fix cache issues and update dependencies [Compare Source](https://togithub.com/actions/setup-go/compare/v3.3.0...v3.3.1) In scope of this release we fixed the issue with the correct generation of the cache key when the `go-version-file` input is set ([https://github.com/actions/setup-go/pull/267](https://togithub.com/actions/setup-go/pull/267)). Moreover, we fixed an issue when [the cache folder was not found](https://togithub.com/actions/setup-go/pull/264). Besides, we updated `actions/core` to 1.10.0 version ([https://github.com/actions/setup-go/pull/273](https://togithub.com/actions/setup-go/pull/273)).Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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 Mend Renovate. View repository job log here.