Releases: actions/setup-go
v5.0.0
What's Changed
In scope of this release, we change Nodejs runtime from node16 to node20 (#421). Moreover, we update some dependencies to the latest versions (#445).
Besides, this release contains such changes as:
- Fix hosted tool cache usage on windows by @galargh in #411
- Improve documentation regarding dependencies caching by @artemgavrilov in #417
New Contributors
- @galargh made their first contribution in #411
- @artemgavrilov made their first contribution in #417
- @chenrui333 made their first contribution in #421
Full Changelog: v4...v5.0.0
v4.1.0
What's Changed
In scope of this release, slow installation on Windows was fixed by @dsame in #393 and OS version was added to primaryKey
for Ubuntu runners to avoid conflicts (#383)
This release also includes the following changes:
- Remove implicit dependencies by @nikolai-laevskii in #378
- Update action.yml by @mkelly in #379
- Added a description that go-version should be specified as a string type by @n3xem in #367
- Add note about YAML parsing versions by @dmitry-shibanov in #382
- Automatic update of configuration files from 05/23/2023 by @github-actions in #377
- Bump tough-cookie and @azure/ms-rest-js by @dependabot in #392
- Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #397
- Bump semver from 6.3.0 to 6.3.1 by @dependabot in #396
New Contributors
Full Changelog: v4...v4.1.0
v4.0.1
What's Changed
- Update documentation for
v4
by @dsame in #354 - Fix glob bug in the package.json scripts section by @IvanZosimov in #359
- Bump
xml2js
dependency by @dmitry-shibanov in #370 - Bump
@actions/cache
dependency to v3.2.1 by @nikolai-laevskii in #374
New Contributors
- @nikolai-laevskii made their first contribution in #374
Full Changelog: v4...v4.0.1
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
.
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
Add support for stable and oldstable aliases
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
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 'stable'
- run: go run hello.go
OldStable
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 'oldstable'
- run: go run hello.go
Add support for go.work and pass the token input through on GHES
In scope of this release we added support for go.work file to pass it in go-version-file input.
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.
Fix cache issues and update dependencies
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 (#267). Moreover, we fixed an issue when the cache folder was not found. Besides, we updated actions/core
to 1.10.0 version (#273).
Support architecture input and fix Expand-Archive issue
This release introduces support for architecture input for setup-go
action #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:
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. #250 adds support for using explicit filename for Windows which is necessary to satisfy Expand-Archive's requirement on .zip extension.
Update actions/cache version to 3.0.0
In scope of this release we updated actions/cache
package as the new version contains fixes for caching error handling
Support for caching dependency files and compiler's build outputs
This release introduces support for caching dependency files and compiler's build outputs #228. For that action uses @toolkit/cache library under the hood that in turn allows getting rid of configuring @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:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '18'
cache: true
cache
along withcache-dependency-path
:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '18'
cache: true
cache-dependency-path: subdir/go.sum