From f7330cca03649a8b769e129891fcd72322e704e7 Mon Sep 17 00:00:00 2001 From: ish <55735188+ish-hcc@users.noreply.github.com> Date: Wed, 21 Aug 2024 08:58:09 +0900 Subject: [PATCH 1/2] Revert "Makefile: Fix golangci-lint compatibility issue" --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f1063f1..4d97c03 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ dependency: ## Get dependencies lint: dependency ## Lint the files @echo "Running linter..." @if [ ! -f "$(GOPATH)/bin/golangci-lint" ] && [ ! -f "$(shell go env GOROOT)/bin/golangci-lint" ]; then \ - $(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59.1; \ + $(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@latest; \ fi @golangci-lint run -E contextcheck -D unused @echo "Linter finished!" From 2b3da231ec2a317dda14ebe3fda9bfd53069d5d9 Mon Sep 17 00:00:00 2001 From: ish <55735188+ish-hcc@users.noreply.github.com> Date: Wed, 21 Aug 2024 14:51:34 +0900 Subject: [PATCH 2/2] Makefile: Specify golangci-lint version --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4d97c03..1f671f7 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ dependency: ## Get dependencies lint: dependency ## Lint the files @echo "Running linter..." @if [ ! -f "$(GOPATH)/bin/golangci-lint" ] && [ ! -f "$(shell go env GOROOT)/bin/golangci-lint" ]; then \ - $(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@latest; \ + $(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.2; \ fi @golangci-lint run -E contextcheck -D unused @echo "Linter finished!"