mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 20:41:20 +00:00
linter up
This commit is contained in:
parent
c429214b84
commit
a19341cc6c
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -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'
|
||||||
|
4
Makefile
4
Makefile
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user