From e86eec07e007bc95fb23e6bc0670510add3bf2e3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 22 Apr 2022 14:26:37 +0800 Subject: [PATCH] specify staticcheck version (#3728) 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: 楚岳 (cherry picked from commit 7b6266433275514efe1452565c2887a3e9f9edf0) Co-authored-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