Fix version mismatch

Signed-off-by: Arkadii Yakovets <ark@victoriametrics.com>
This commit is contained in:
Arkadii Yakovets 2024-07-16 10:24:40 -07:00
parent 6d54fff850
commit 32039b0ecf
No known key found for this signature in database
GPG key ID: 7AEAA43DE7C15E41
2 changed files with 3 additions and 1 deletions

View file

@ -59,7 +59,8 @@ jobs:
- name: Run golangci-lint - name: Run golangci-lint
uses: golangci/golangci-lint-action@v6 uses: golangci/golangci-lint-action@v6
with: with:
version: v1.59 # The version must match "install-golangci-lint" Makefile target version.
version: v1.59.1
- name: Run govulncheck - name: Run govulncheck
run: make govulncheck run: make govulncheck

View file

@ -493,6 +493,7 @@ golangci-lint: install-golangci-lint
golangci-lint run golangci-lint run
install-golangci-lint: install-golangci-lint:
# The version must match GitHub main.yml lint job "Run golangci-lint" step version.
which golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.59.1 which golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.59.1
remove-golangci-lint: remove-golangci-lint: