Skip to content

Commit bbb0d5d

Browse files
committed
chore: modify makefile script
1 parent 207352a commit bbb0d5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ package:
5050

5151
install-tools:
5252
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
53-
go install honnef.co/go/tools/cmd/staticcheck@2023.1
53+
go install honnef.co/go/tools/cmd/staticcheck@latest
5454
go install github.com/securego/gosec/v2/cmd/gosec@latest
5555
go install github.com/google/addlicense@latest
5656

5757

58-
lint: install-tools
58+
lint:
59+
# Please make sure you are using the latest go version before executing lint
60+
@go version
5961
go vet ./...
6062
golangci-lint run ./...
6163
staticcheck ./...

0 commit comments

Comments
 (0)