From be0345a40b92326a9003eed6d9d7c0ca30243a95 Mon Sep 17 00:00:00 2001 From: Pedro Kaj Kjellerup Nacht Date: Thu, 16 Nov 2023 17:00:37 -0300 Subject: [PATCH] Use a specific version of staticcheck --- .github/workflows/ci.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e4de4918..c690dd1f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -80,8 +80,7 @@ jobs: brew install graphviz # Do not let tools interfere with the main module's go.mod. cd && go mod init tools - # TODO: Update to a specific version when https://github.com/dominikh/go-tools/issues/1362 is fixed. - go install honnef.co/go/tools/cmd/staticcheck@master + go install honnef.co/go/tools/cmd/staticcheck@v0.4.6 go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.0 # Add PATH for installed tools. echo "$GOPATH/bin:$PATH" >> $GITHUB_PATH @@ -139,8 +138,7 @@ jobs: sudo apt-get install graphviz # Do not let tools interfere with the main module's go.mod. cd && go mod init tools - # TODO: Update to a specific version when https://github.com/dominikh/go-tools/issues/1362 is fixed. - go install honnef.co/go/tools/cmd/staticcheck@master + go install honnef.co/go/tools/cmd/staticcheck@v0.4.6 go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.0 # Add PATH for installed tools. echo "$GOPATH/bin:$PATH" >> $GITHUB_PATH