linter up

This commit is contained in:
alex.sharov 2023-03-23 10:34:44 +07:00
parent c429214b84
commit a19341cc6c
2 changed files with 3 additions and 4 deletions

View File

@ -49,8 +49,7 @@ jobs:
if: matrix.os == 'ubuntu-20.04' if: matrix.os == 'ubuntu-20.04'
uses: golangci/golangci-lint-action@v3 uses: golangci/golangci-lint-action@v3
with: with:
version: v1.51 version: v1.52
args: --config=.golangci.yml --out-${NO_FUTURE}format colored-line-number
- name: Test win - name: Test win
if: matrix.os == 'windows-2022' if: matrix.os == 'windows-2022'

View File

@ -29,7 +29,7 @@ $(GOBINREL):
$(GOBINREL)/protoc: | $(GOBINREL) $(GOBINREL)/protoc: | $(GOBINREL)
$(eval PROTOC_TMP := $(shell mktemp -d)) $(eval PROTOC_TMP := $(shell mktemp -d))
curl -sSL https://github.com/protocolbuffers/protobuf/releases/download/v22.1/protoc-22.1-$(PROTOC_OS)-$(ARCH).zip -o "$(PROTOC_TMP)/protoc.zip" curl -sSL https://github.com/protocolbuffers/protobuf/releases/download/v22.2/protoc-22.2-$(PROTOC_OS)-$(ARCH).zip -o "$(PROTOC_TMP)/protoc.zip"
cd "$(PROTOC_TMP)" && unzip protoc.zip cd "$(PROTOC_TMP)" && unzip protoc.zip
cp "$(PROTOC_TMP)/bin/protoc" "$(GOBIN)" cp "$(PROTOC_TMP)/bin/protoc" "$(GOBIN)"
mkdir -p "$(PROTOC_INCLUDE)" mkdir -p "$(PROTOC_INCLUDE)"
@ -80,7 +80,7 @@ lintci-deps-clean: golangci-lint-clean
# download and build golangci-lint (https://golangci-lint.run) # download and build golangci-lint (https://golangci-lint.run)
$(GOBINREL)/golangci-lint: | $(GOBINREL) $(GOBINREL)/golangci-lint: | $(GOBINREL)
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(GOBIN)" v1.51.2 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(GOBIN)" v1.52.1
golangci-lint-clean: golangci-lint-clean:
rm -f "$(GOBIN)/golangci-lint" rm -f "$(GOBIN)/golangci-lint"