Skip to content

Releases: actions/setup-go

Add go-version-file input

Choose a tag to compare

@dmitry-shibanov dmitry-shibanov released this 12 May 10:59
fcdc436

Adding Go version file support

In scope of this release we add the go-version-file 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.
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 #221
  • Added go-version output #85
  • Do not export GOROOT for Go versions >= 1.9 #175
  • Update @zeit/ncc to @vercel/ncc #229

v3.0.0

Choose a tag to compare

@dmitry-shibanov dmitry-shibanov released this 28 Feb 10:27
f6164bd

What's Changed

  • Update default runtime to node16 (#192)
  • Update package-lock.json file version to 2 (#193) and @types/node to 16.11.25 (#194)
  • Remove the stable input and fix SemVer notation (#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).

steps:
  - uses: actions/checkout@v2
  - uses: actions/setup-go@v3
    with:
      go-version: '1.18.0-rc.1' 
  - run: go version

Add check-latest input

Choose a tag to compare

@dmitry-shibanov dmitry-shibanov released this 09 Feb 12:21
bfdd357

In scope of this release we add the check-latest input. If check-latest is set to true, the action first checks if the cached version is the latest one. If the locally cached version is not the most up-to-date, a Go version will then be downloaded from go-versions repository. By default check-latest is set to false.
Example of usage:

steps:
  - uses: actions/checkout@v2
  - uses: actions/setup-go@v2
    with:
      go-version: '1.16'
      check-latest: true
  - run: go version

Moreover, we updated @actions/core from 1.2.6 to 1.6.0

v2.1.5

Choose a tag to compare

@dmitry-shibanov dmitry-shibanov released this 21 Dec 14:17
424fc82

In scope of this release we updated matchers.json to improve the problem matcher pattern. For more information please refer to this pull request

v2.1.4

Choose a tag to compare

@joshmgross joshmgross released this 25 Aug 15:52
331ce1d

What's Changed

New Contributors

Full Changelog: v2.1.3...v2.1.4

v2.1.3

Choose a tag to compare

@thboop thboop released this 01 Oct 14:52
37335c7
  • Updated communication with runner to use environment files rather then workflow commands

v1.1.3

Choose a tag to compare

@thboop thboop released this 01 Oct 14:51
0caeaed
  • Updated communication with runner to use environment files rather then workflow commands

v2.1.2

Choose a tag to compare

@thboop thboop released this 11 Aug 18:33
8a3a76c

This release includes vendored licenses for this action's npm dependencies.

v2.1.1

Choose a tag to compare

@maxim-lobanov maxim-lobanov released this 21 Jul 15:17
d0c5def

Switch to main branch of go-versions repository to consume latest added versions

v2.1.0

Choose a tag to compare

@bryanmacfarlane bryanmacfarlane released this 29 Jun 19:18
1616116

Go binaries are downloaded from go-versions releases with a read through to the go dist source on miss.