From 78a3d790f32417c0693d60afe55135983594deb0 Mon Sep 17 00:00:00 2001 From: Sam Herrmann Date: Fri, 3 Feb 2023 03:51:22 -0500 Subject: [PATCH] Pin staticcheck version to v0.2.2 (#63) The CI pipeline has been broken in this project for some time because the latest version of staticcheck is not compatible with every version of Go. Through trial and error, it was discovered that staticcheck v0.2.2 is the latest version that is compatible with Go 1.16. The authors of staticcheck also recommend pinning the version in CI pipelines to prevent unintentional breakage of the build [1]. References [1]: https://staticcheck.io/docs/running-staticcheck/ci/github-actions/#version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f807c82..9bf8e75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: - name: Get dependencies run: go get -t -v ./... - name: Install staticcheck - run: go install honnef.co/go/tools/cmd/staticcheck@latest + run: go install honnef.co/go/tools/cmd/staticcheck@v0.2.2 - name: Lint run: staticcheck -checks=all ./... - name: Test