Skip to content

Commit

Permalink
Change install-go to always install the latest release of Go
Browse files Browse the repository at this point in the history
Closes: gh-13
  • Loading branch information
dominikh committed Mar 23, 2024
1 parent b452709 commit ab775bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ Go build tags that get passed to Staticcheck via the `-tags` flag.

### `install-go`

Whether the action should install a suitable version of Go to install and run Staticcheck.
Whether the action should install the latest version of Go to install and run Staticcheck.
If Staticcheck is the only action in your job, this option can usually be left on its default value of `true`.
If your job already installs Go prior to running Staticcheck, for example to run unit tests, it is best to set this option to `false`.

The latest release of Staticcheck works with the last two minor releases of Go.
The latest release of Staticcheck works with the last minor release of Go at the time.
The action itself requires at least Go 1.16.

### `cache-key`
Expand Down
6 changes: 3 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ inputs:
default: "inherit"
install-go:
description: |
Let the action install a version of Go appropriate for building and running Staticcheck.
Let the action install the latest version of Go.
If set to false, the action expects you to have installed Go already.
The latest release of Staticcheck works with the last two minor releases of Go.
The latest release of Staticcheck works with the last minor release of Go at that time.
The action itself requires at least Go 1.16.
required: true
default: true
Expand Down Expand Up @@ -77,7 +77,7 @@ runs:
if: ${{ inputs.install-go != 'false' }}
uses: WillAbides/setup-go-faster@v1.14.0
with:
go-version: "1.19.x"
go-version: "stable"
- uses: actions/cache@v3
if: ${{ inputs.merge-files == '' }}
with:
Expand Down

0 comments on commit ab775bd

Please sign in to comment.