From 76023319c4275645b9c8c3bd896c1e60e1d57ae7 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. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c5565d058f..b3bd04d98f 100644 --- a/Makefile +++ b/Makefile @@ -407,11 +407,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