Skip to content

Commit

Permalink
chore: use same version of golangci-lint as GHA
Browse files Browse the repository at this point in the history
The GitHub action has updated past the version of golangci-lint that
we've specified in the Makefile. This brings them to the same version
to prevent inconsistency (moving to Go 1.22 will introduce such
inconsistency).

The task to install this tool currently doesn't ensure the version, if
it's already in place, so one can to run `make -B golangci-lint` once
to get the correct versions.
  • Loading branch information
grdryn committed Dec 6, 2024
1 parent b27759b commit de60161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ GOLANGCI_LINT_INSTALL_SCRIPT ?= 'https://raw.githubusercontent.com/golangci/gola
.PHONY: golangci-lint
golangci-lint: $(GOLANGCI_LINT) ## Download golangci-lint locally if necessary.
$(GOLANGCI_LINT): $(LOCALBIN)
test -s $(GOLANGCI_LINT) || { curl -sSfL $(GOLANGCI_LINT_INSTALL_SCRIPT) | bash -s $(GOLANGCI_LINT_VERSION); }
{ curl -sSfL $(GOLANGCI_LINT_INSTALL_SCRIPT) | bash -s $(GOLANGCI_LINT_VERSION); }


OS=$(shell uname -s)
Expand Down

0 comments on commit de60161

Please sign in to comment.