From 9af8daeeab8febd26877f0bbc10aa0c535b32a73 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Sat, 3 Sep 2022 17:56:27 +0200 Subject: [PATCH] ci: upgrade golangci-lint Signed-off-by: Mark Sagi-Kazar --- .github/workflows/ci.yaml | 4 ++-- Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 350186d..ac67f31 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -48,7 +48,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: 1.19 - name: Checkout code uses: actions/checkout@v3 @@ -56,4 +56,4 @@ jobs: - name: Lint uses: golangci/golangci-lint-action@v3 with: - version: v1.45.2 + version: v1.49 diff --git a/Makefile b/Makefile index 02d3e37..130c427 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ endif # Dependency versions GOTESTSUM_VERSION = 1.8.0 -GOLANGCI_VERSION = 1.45.2 +GOLANGCI_VERSION = 1.49.0 # Add the ability to override some variables # Use with care @@ -48,7 +48,7 @@ bin/golangci-lint: bin/golangci-lint-${GOLANGCI_VERSION} @ln -sf golangci-lint-${GOLANGCI_VERSION} bin/golangci-lint bin/golangci-lint-${GOLANGCI_VERSION}: @mkdir -p bin - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b ./bin/ v${GOLANGCI_VERSION} + curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b ./bin/ v${GOLANGCI_VERSION} @mv bin/golangci-lint "$@" .PHONY: lint