From 1c3ad857ab0006140af3238145944e79686d93f4 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 10 Sep 2023 16:47:22 +0200 Subject: [PATCH] [TESTS] add GOLANGCI_LINT_ARGS to control golangci calls It is for instance useful with: GOLANGCI_LINT_ARGS="--concurrency $(expr $(nproc) / 2)" make lint-backend on a laptop where overcommitting the CPU degrades the UI performances. (cherry picked from commit 76023319c4275645b9c8c3bd896c1e60e1d57ae7) (cherry picked from commit 55eb05b03db15355745af83e612406baccc2b126) (cherry picked from commit 49c84de3dff883c89a3c0115ab7e0a06aad7bb45) (cherry picked from commit e8e26f08a6f31fc68797d6e0a927e75565abc350) (cherry picked from commit 401aa12cac3ad50ffa21c5e141d72e1d7cfd45ff) (cherry picked from commit 4ae8f663ad287269e1dc8bee19b3edcf41a431f8) (cherry picked from commit 1ba6b35cd7845c973ed5f41e867aa27333e73504) (cherry picked from commit 2b671642cb1324802f61ec9def35b994ef5bb31d) (cherry picked from commit 7fa16f0016ebf6cd6e356670f23113aa895dd6ab) (cherry picked from commit e6eeb83d54ca3ecd9a72b4c32e6c5c03c019861e) (cherry picked from commit aebc7808f6895a93b8dbe4166058dda8ffeef915) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0a4987c5f7..d2e5216b02 100644 --- a/Makefile +++ b/Makefile @@ -381,11 +381,11 @@ lint-md: node_modules .PHONY: lint-go lint-go: - $(GO) run $(GOLANGCI_LINT_PACKAGE) run + $(GO) run $(GOLANGCI_LINT_PACKAGE) run $(GOLANGCI_LINT_ARGS) .PHONY: lint-go-fix lint-go-fix: - $(GO) run $(GOLANGCI_LINT_PACKAGE) run --fix + $(GO) run $(GOLANGCI_LINT_PACKAGE) run $(GOLANGCI_LINT_ARGS) --fix # workaround step for the lint-go-windows CI task because 'go run' can not # have distinct GOOS/GOARCH for its build and run steps