Skip to content

Commit 5dcf0ae

Browse files
committed
Fix lint task in CI
The lint task was failing at head, due to a nolint:exhaustive error directive that golangci nolintlint believes is unused. Issue seems to be golangci/golangci-lint#3228 and seems to be a bug in golang-ci / nolintlint, using the workaround proposed in golangci/golangci-lint#1940 which is to clear the cache between runs.
1 parent ce3e394 commit 5dcf0ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile-modules.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ include $(KUSTOMIZE_ROOT)/Makefile-tools.mk
1414
.PHONY: lint test fix fmt tidy vet build
1515

1616
lint: $(MYGOBIN)/golangci-lint
17+
$(MYGOBIN)/golangci-lint cache clean # Workaround for https://github.com/golangci/golangci-lint/issues/3228
1718
$(MYGOBIN)/golangci-lint \
1819
-c $$KUSTOMIZE_ROOT/.golangci.yml \
1920
--path-prefix $(shell pwd | sed -E 's|(.*\/kustomize)/(.*)|\2|') \

0 commit comments

Comments
 (0)