actions/setup-go (actions/setup-go)
### [`v5.0.0`](https://togithub.com/actions/setup-go/releases/tag/v5.0.0)
[Compare Source](https://togithub.com/actions/setup-go/compare/v4.1.0...v5.0.0)
##### What's Changed
In scope of this release, we change Nodejs runtime from node16 to node20 ([https://github.com/actions/setup-go/pull/421](https://togithub.com/actions/setup-go/pull/421)). Moreover, we update some dependencies to the latest versions ([https://github.com/actions/setup-go/pull/445](https://togithub.com/actions/setup-go/pull/445)).
Besides, this release contains such changes as:
- Fix hosted tool cache usage on windows by [@galargh](https://togithub.com/galargh) in [https://github.com/actions/setup-go/pull/411](https://togithub.com/actions/setup-go/pull/411)
- Improve documentation regarding dependencies caching by [@artemgavrilov](https://togithub.com/artemgavrilov) in [https://github.com/actions/setup-go/pull/417](https://togithub.com/actions/setup-go/pull/417)
##### New Contributors
- [@galargh](https://togithub.com/galargh) made their first contribution in [https://github.com/actions/setup-go/pull/411](https://togithub.com/actions/setup-go/pull/411)
- [@artemgavrilov](https://togithub.com/artemgavrilov) made their first contribution in [https://github.com/actions/setup-go/pull/417](https://togithub.com/actions/setup-go/pull/417)
- [@chenrui333](https://togithub.com/chenrui333) made their first contribution in [https://github.com/actions/setup-go/pull/421](https://togithub.com/actions/setup-go/pull/421)
**Full Changelog**: https://github.com/actions/setup-go/compare/v4...v5.0.0
### [`v4.1.0`](https://togithub.com/actions/setup-go/releases/tag/v4.1.0)
[Compare Source](https://togithub.com/actions/setup-go/compare/v4.0.1...v4.1.0)
#### What's Changed
In scope of this release, slow installation on Windows was fixed by [@dsame](https://togithub.com/dsame) in [https://github.com/actions/setup-go/pull/393](https://togithub.com/actions/setup-go/pull/393) and OS version was added to `primaryKey` for Ubuntu runners to avoid conflicts ([https://github.com/actions/setup-go/pull/383](https://togithub.com/actions/setup-go/pull/383))
This release also includes the following changes:
- Remove implicit dependencies by [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) in [https://github.com/actions/setup-go/pull/378](https://togithub.com/actions/setup-go/pull/378)
- Update action.yml by [@mkelly](https://togithub.com/mkelly) in [https://github.com/actions/setup-go/pull/379](https://togithub.com/actions/setup-go/pull/379)
- Added a description that go-version should be specified as a string type by [@n3xem](https://togithub.com/n3xem) in [https://github.com/actions/setup-go/pull/367](https://togithub.com/actions/setup-go/pull/367)
- Add note about YAML parsing versions by [@dmitry-shibanov](https://togithub.com/dmitry-shibanov) in [https://github.com/actions/setup-go/pull/382](https://togithub.com/actions/setup-go/pull/382)
- Automatic update of configuration files from 05/23/2023 by [@github-actions](https://togithub.com/github-actions) in [https://github.com/actions/setup-go/pull/377](https://togithub.com/actions/setup-go/pull/377)
- Bump tough-cookie and [@azure/ms-rest-js](https://togithub.com/azure/ms-rest-js) by [@dependabot](https://togithub.com/dependabot) in [https://github.com/actions/setup-go/pull/392](https://togithub.com/actions/setup-go/pull/392)
- Bump word-wrap from 1.2.3 to 1.2.4 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/actions/setup-go/pull/397](https://togithub.com/actions/setup-go/pull/397)
- Bump semver from 6.3.0 to 6.3.1 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/actions/setup-go/pull/396](https://togithub.com/actions/setup-go/pull/396)
#### New Contributors
- [@mkelly](https://togithub.com/mkelly) made their first contribution in [https://github.com/actions/setup-go/pull/379](https://togithub.com/actions/setup-go/pull/379)
- [@n3xem](https://togithub.com/n3xem) made their first contribution in [https://github.com/actions/setup-go/pull/367](https://togithub.com/actions/setup-go/pull/367)
**Full Changelog**: https://github.com/actions/setup-go/compare/v4...v4.1.0
### [`v4.0.1`](https://togithub.com/actions/setup-go/releases/tag/v4.0.1)
[Compare Source](https://togithub.com/actions/setup-go/compare/v4.0.0...v4.0.1)
#### What's Changed
- Update documentation for `v4` by [@dsame](https://togithub.com/dsame) in [https://github.com/actions/setup-go/pull/354](https://togithub.com/actions/setup-go/pull/354)
- Fix glob bug in the package.json scripts section by [@IvanZosimov](https://togithub.com/IvanZosimov) in [https://github.com/actions/setup-go/pull/359](https://togithub.com/actions/setup-go/pull/359)
- Bump `xml2js` dependency by [@dmitry-shibanov](https://togithub.com/dmitry-shibanov) in [https://github.com/actions/setup-go/pull/370](https://togithub.com/actions/setup-go/pull/370)
- Bump `@actions/cache` dependency to v3.2.1 by [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) in [https://github.com/actions/setup-go/pull/374](https://togithub.com/actions/setup-go/pull/374)
#### New Contributors
- [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) made their first contribution in [https://github.com/actions/setup-go/pull/374](https://togithub.com/actions/setup-go/pull/374)
**Full Changelog**: https://github.com/actions/setup-go/compare/v4...v4.0.1
### [`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)).
### [`v3.3.0`](https://togithub.com/actions/setup-go/releases/tag/v3.3.0): Support architecture input and fix Expand-Archive issue
[Compare Source](https://togithub.com/actions/setup-go/compare/v3.2.1...v3.3.0)
This release introduces support for architecture input for `setup-go` action [#253](https://togithub.com/actions/setup-go/issues/253). It also adds support for arm32 architecture for self-hosted runners. If architecture is not provided action will use default runner architecture.
Example of usage:
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.16'
architecture: arm
```
This release also provides fix for issue [#241](https://togithub.com/actions/setup-go/issues/241). [#250](https://togithub.com/actions/setup-go/issues/250) adds support for using explicit filename for Windows which is necessary to satisfy Expand-Archive's requirement on .zip extension.
### [`v3.2.1`](https://togithub.com/actions/setup-go/releases/tag/v3.2.1): Update actions/cache version to 3.0.0
[Compare Source](https://togithub.com/actions/setup-go/compare/v3.2.0...v3.2.1)
In scope of this release we updated `actions/cache` package as the new version contains fixes for [caching error handling](https://togithub.com/actions/setup-go/pull/238)
### [`v3.2.0`](https://togithub.com/actions/setup-go/releases/tag/v3.2.0): Support for caching dependency files and compiler's build outputs
[Compare Source](https://togithub.com/actions/setup-go/compare/v3.1.0...v3.2.0)
This release introduces support for caching dependency files and compiler's build outputs [#228](https://togithub.com/actions/setup-go/pull/228). For that action uses [@toolkit/cache](https://togithub.com/actions/toolkit/tree/main/packages/cache) library under the hood that in turn allows getting rid of configuring [@actions/cache](https://togithub.com/actions/cache) action separately and simplifies the whole workflow.
Such input parameters as `cache` and `cache-dependency-path` were added. The `cache` input is optional, and caching is turned off by default, `cache-dependency-path` is used to specify the path to a dependency file - `go.sum`.
**Examples of use-cases:**
- `cache` input only:
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '18'
cache: true
```
- `cache` along with `cache-dependency-path`:
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '18'
cache: true
cache-dependency-path: subdir/go.sum
```
### [`v3.1.0`](https://togithub.com/actions/setup-go/releases/tag/v3.1.0): Add go-version-file input
[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)
### [`v3.0.0`](https://togithub.com/actions/setup-go/releases/tag/v3.0.0)
[Compare Source](https://togithub.com/actions/setup-go/compare/v2.2.0...v3.0.0)
##### What's Changed
- Update default runtime to node16 ([https://github.com/actions/setup-go/pull/192](https://togithub.com/actions/setup-go/pull/192))
- Update `package-lock.json` file version to 2 ([https://github.com/actions/setup-go/pull/193](https://togithub.com/actions/setup-go/pull/193)) and `@types/node` to 16.11.25 ([https://github.com/actions/setup-go/pull/194](https://togithub.com/actions/setup-go/pull/194))
- Remove the `stable` input and fix SemVer notation ([https://github.com/actions/setup-go/pull/195](https://togithub.com/actions/setup-go/pull/195))
##### Breaking Changes
With the update to Node 16, all scripts will now be run with Node 16 rather than Node 12.
This new major release removes the `stable` input, so there is no need to specify additional input to use pre-release versions. This release also corrects the pre-release versions syntax to satisfy the SemVer notation (1.18.0-beta1 -> 1.18.0-beta.1, 1.18.0-rc1 -> 1.18.0-rc.1).
```yaml
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version: '1.18.0-rc.1'
- run: go version
```
Configuration
📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), 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:
v2.2.0
->v5.0.0
Release Notes
actions/setup-go (actions/setup-go)
### [`v5.0.0`](https://togithub.com/actions/setup-go/releases/tag/v5.0.0) [Compare Source](https://togithub.com/actions/setup-go/compare/v4.1.0...v5.0.0) ##### What's Changed In scope of this release, we change Nodejs runtime from node16 to node20 ([https://github.com/actions/setup-go/pull/421](https://togithub.com/actions/setup-go/pull/421)). Moreover, we update some dependencies to the latest versions ([https://github.com/actions/setup-go/pull/445](https://togithub.com/actions/setup-go/pull/445)). Besides, this release contains such changes as: - Fix hosted tool cache usage on windows by [@galargh](https://togithub.com/galargh) in [https://github.com/actions/setup-go/pull/411](https://togithub.com/actions/setup-go/pull/411) - Improve documentation regarding dependencies caching by [@artemgavrilov](https://togithub.com/artemgavrilov) in [https://github.com/actions/setup-go/pull/417](https://togithub.com/actions/setup-go/pull/417) ##### New Contributors - [@galargh](https://togithub.com/galargh) made their first contribution in [https://github.com/actions/setup-go/pull/411](https://togithub.com/actions/setup-go/pull/411) - [@artemgavrilov](https://togithub.com/artemgavrilov) made their first contribution in [https://github.com/actions/setup-go/pull/417](https://togithub.com/actions/setup-go/pull/417) - [@chenrui333](https://togithub.com/chenrui333) made their first contribution in [https://github.com/actions/setup-go/pull/421](https://togithub.com/actions/setup-go/pull/421) **Full Changelog**: https://github.com/actions/setup-go/compare/v4...v5.0.0 ### [`v4.1.0`](https://togithub.com/actions/setup-go/releases/tag/v4.1.0) [Compare Source](https://togithub.com/actions/setup-go/compare/v4.0.1...v4.1.0) #### What's Changed In scope of this release, slow installation on Windows was fixed by [@dsame](https://togithub.com/dsame) in [https://github.com/actions/setup-go/pull/393](https://togithub.com/actions/setup-go/pull/393) and OS version was added to `primaryKey` for Ubuntu runners to avoid conflicts ([https://github.com/actions/setup-go/pull/383](https://togithub.com/actions/setup-go/pull/383)) This release also includes the following changes: - Remove implicit dependencies by [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) in [https://github.com/actions/setup-go/pull/378](https://togithub.com/actions/setup-go/pull/378) - Update action.yml by [@mkelly](https://togithub.com/mkelly) in [https://github.com/actions/setup-go/pull/379](https://togithub.com/actions/setup-go/pull/379) - Added a description that go-version should be specified as a string type by [@n3xem](https://togithub.com/n3xem) in [https://github.com/actions/setup-go/pull/367](https://togithub.com/actions/setup-go/pull/367) - Add note about YAML parsing versions by [@dmitry-shibanov](https://togithub.com/dmitry-shibanov) in [https://github.com/actions/setup-go/pull/382](https://togithub.com/actions/setup-go/pull/382) - Automatic update of configuration files from 05/23/2023 by [@github-actions](https://togithub.com/github-actions) in [https://github.com/actions/setup-go/pull/377](https://togithub.com/actions/setup-go/pull/377) - Bump tough-cookie and [@azure/ms-rest-js](https://togithub.com/azure/ms-rest-js) by [@dependabot](https://togithub.com/dependabot) in [https://github.com/actions/setup-go/pull/392](https://togithub.com/actions/setup-go/pull/392) - Bump word-wrap from 1.2.3 to 1.2.4 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/actions/setup-go/pull/397](https://togithub.com/actions/setup-go/pull/397) - Bump semver from 6.3.0 to 6.3.1 by [@dependabot](https://togithub.com/dependabot) in [https://github.com/actions/setup-go/pull/396](https://togithub.com/actions/setup-go/pull/396) #### New Contributors - [@mkelly](https://togithub.com/mkelly) made their first contribution in [https://github.com/actions/setup-go/pull/379](https://togithub.com/actions/setup-go/pull/379) - [@n3xem](https://togithub.com/n3xem) made their first contribution in [https://github.com/actions/setup-go/pull/367](https://togithub.com/actions/setup-go/pull/367) **Full Changelog**: https://github.com/actions/setup-go/compare/v4...v4.1.0 ### [`v4.0.1`](https://togithub.com/actions/setup-go/releases/tag/v4.0.1) [Compare Source](https://togithub.com/actions/setup-go/compare/v4.0.0...v4.0.1) #### What's Changed - Update documentation for `v4` by [@dsame](https://togithub.com/dsame) in [https://github.com/actions/setup-go/pull/354](https://togithub.com/actions/setup-go/pull/354) - Fix glob bug in the package.json scripts section by [@IvanZosimov](https://togithub.com/IvanZosimov) in [https://github.com/actions/setup-go/pull/359](https://togithub.com/actions/setup-go/pull/359) - Bump `xml2js` dependency by [@dmitry-shibanov](https://togithub.com/dmitry-shibanov) in [https://github.com/actions/setup-go/pull/370](https://togithub.com/actions/setup-go/pull/370) - Bump `@actions/cache` dependency to v3.2.1 by [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) in [https://github.com/actions/setup-go/pull/374](https://togithub.com/actions/setup-go/pull/374) #### New Contributors - [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) made their first contribution in [https://github.com/actions/setup-go/pull/374](https://togithub.com/actions/setup-go/pull/374) **Full Changelog**: https://github.com/actions/setup-go/compare/v4...v4.0.1 ### [`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)). ### [`v3.3.0`](https://togithub.com/actions/setup-go/releases/tag/v3.3.0): Support architecture input and fix Expand-Archive issue [Compare Source](https://togithub.com/actions/setup-go/compare/v3.2.1...v3.3.0) This release introduces support for architecture input for `setup-go` action [#253](https://togithub.com/actions/setup-go/issues/253). It also adds support for arm32 architecture for self-hosted runners. If architecture is not provided action will use default runner architecture. Example of usage: ```yaml steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: '1.16' architecture: arm ``` This release also provides fix for issue [#241](https://togithub.com/actions/setup-go/issues/241). [#250](https://togithub.com/actions/setup-go/issues/250) adds support for using explicit filename for Windows which is necessary to satisfy Expand-Archive's requirement on .zip extension. ### [`v3.2.1`](https://togithub.com/actions/setup-go/releases/tag/v3.2.1): Update actions/cache version to 3.0.0 [Compare Source](https://togithub.com/actions/setup-go/compare/v3.2.0...v3.2.1) In scope of this release we updated `actions/cache` package as the new version contains fixes for [caching error handling](https://togithub.com/actions/setup-go/pull/238) ### [`v3.2.0`](https://togithub.com/actions/setup-go/releases/tag/v3.2.0): Support for caching dependency files and compiler's build outputs [Compare Source](https://togithub.com/actions/setup-go/compare/v3.1.0...v3.2.0) This release introduces support for caching dependency files and compiler's build outputs [#228](https://togithub.com/actions/setup-go/pull/228). For that action uses [@toolkit/cache](https://togithub.com/actions/toolkit/tree/main/packages/cache) library under the hood that in turn allows getting rid of configuring [@actions/cache](https://togithub.com/actions/cache) action separately and simplifies the whole workflow. Such input parameters as `cache` and `cache-dependency-path` were added. The `cache` input is optional, and caching is turned off by default, `cache-dependency-path` is used to specify the path to a dependency file - `go.sum`. **Examples of use-cases:** - `cache` input only: ```yaml steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: '18' cache: true ``` - `cache` along with `cache-dependency-path`: ```yaml steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: go-version: '18' cache: true cache-dependency-path: subdir/go.sum ``` ### [`v3.1.0`](https://togithub.com/actions/setup-go/releases/tag/v3.1.0): Add go-version-file input [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) ### [`v3.0.0`](https://togithub.com/actions/setup-go/releases/tag/v3.0.0) [Compare Source](https://togithub.com/actions/setup-go/compare/v2.2.0...v3.0.0) ##### What's Changed - Update default runtime to node16 ([https://github.com/actions/setup-go/pull/192](https://togithub.com/actions/setup-go/pull/192)) - Update `package-lock.json` file version to 2 ([https://github.com/actions/setup-go/pull/193](https://togithub.com/actions/setup-go/pull/193)) and `@types/node` to 16.11.25 ([https://github.com/actions/setup-go/pull/194](https://togithub.com/actions/setup-go/pull/194)) - Remove the `stable` input and fix SemVer notation ([https://github.com/actions/setup-go/pull/195](https://togithub.com/actions/setup-go/pull/195)) ##### Breaking Changes With the update to Node 16, all scripts will now be run with Node 16 rather than Node 12. This new major release removes the `stable` input, so there is no need to specify additional input to use pre-release versions. This release also corrects the pre-release versions syntax to satisfy the SemVer notation (1.18.0-beta1 -> 1.18.0-beta.1, 1.18.0-rc1 -> 1.18.0-rc.1). ```yaml steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: go-version: '1.18.0-rc.1' - run: go version ```Configuration
📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), 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.