From 3eb1f53606dfe2d66ade2b256d652896247b74e7 Mon Sep 17 00:00:00 2001 From: wyike Date: Fri, 22 Apr 2022 14:16:15 +0800 Subject: [PATCH] specify staticcheck version (#3726) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 楚岳 fix the workflow Signed-off-by: 楚岳 fix try to fix Signed-off-by: 楚岳 fix make file Signed-off-by: 楚岳 fix makefile Signed-off-by: 楚岳 --- .github/workflows/go.yml | 2 +- makefiles/dependency.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index dee7b9619..e90d49b93 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -57,7 +57,7 @@ jobs: restore-keys: ${{ runner.os }}-pkg- - name: Install StaticCheck - run: GO111MODULE=off go get honnef.co/go/tools/cmd/staticcheck + run: GO111MODULE=on go get honnef.co/go/tools/cmd/staticcheck@v0.3.0 - name: Static Check run: staticcheck ./... diff --git a/makefiles/dependency.mk b/makefiles/dependency.mk index c530fa76c..7de9722b1 100644 --- a/makefiles/dependency.mk +++ b/makefiles/dependency.mk @@ -25,7 +25,7 @@ ifeq (, $(shell which staticcheck)) @{ \ set -e ;\ echo 'installing honnef.co/go/tools/cmd/staticcheck ' ;\ - GO111MODULE=off go get honnef.co/go/tools/cmd/staticcheck ;\ + GO111MODULE=on go get honnef.co/go/tools/cmd/staticcheck@v0.3.0 ;\ } STATICCHECK=$(GOBIN)/staticcheck else