Skip to content

Commit f4379da

Browse files
authored
chore: add a fallback to go get in go check (ipdxco#32)
1 parent 0f57134 commit f4379da

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/go-check.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,17 @@ jobs:
3535
"1.19": "376210a89477dedbe6fdc4484b233998650d7b3c",
3636
"1.18": "376210a89477dedbe6fdc4484b233998650d7b3c",
3737
"1.17": "c8caa92bad8c27ae734c6725b8a04932d54a147b",
38-
"1.16": "5a1275af4f46a845a0ec1e8b2b6539bdb991f63a",
38+
"1.16": "4dc1992c9bb4310ba1e98b30c8d7d46444891d3b",
3939
"1.15": "5b7de96f09104e2be384aa93a7c821eb5e77378b",
40-
"1.14": "e6faca53be3c685bf97e827e24e58ec9297f619e",
40+
"1.14": "5b7de96f09104e2be384aa93a7c821eb5e77378b",
4141
"1.13": "afd67930eec2a9ed3e9b19f684d17a062285f16a"
4242
}
4343
GO_VERSION: ${{ steps.go.outputs.go-version }}
44+
GO111MODULE: on
4445
run: |
4546
version="$(jq -nr 'env.STATICCHECK_VERSIONS | fromjson | .[env.GO_VERSION | sub("\\.[^.]+$"; "")] // "latest"')"
4647
echo "Installing staticcheck@$version"
47-
go install honnef.co/go/tools/cmd/staticcheck@$version
48+
go install honnef.co/go/tools/cmd/staticcheck@$version || go get honnef.co/go/tools/cmd/staticcheck@$version
4849
- name: Check that go.mod is tidy
4950
uses: protocol/multiple-go-modules@v1.2
5051
with:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## Unreleased
8+
### Changed
9+
- fallback to `go get` in Go check workflow
810

911
## [0.0.11] - 2023-08-23
1012
### Added

0 commit comments

Comments
 (0)