From 849dbbd9451c5bd8496115877a30cabdc7240e85 Mon Sep 17 00:00:00 2001 From: "Stephen Lewis (Burrows)" Date: Tue, 2 Aug 2022 11:11:19 -0700 Subject: [PATCH] Switched off GOGC for linter (#4546) This will increase memory usage but should decrease run time if memory isn't the bottleneck Also enabled verbose logging for the linter so that we can see how far it gets and what is slow when it times out. Also increased the timeout --- .golangci.yml | 2 +- GNUmakefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index aa4273cb9d..7b08f8a978 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,5 +1,5 @@ run: - timeout: 4m + timeout: 5m linters: disable-all: true diff --git a/GNUmakefile b/GNUmakefile index dca62c0ab9..632cc00adc 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -25,7 +25,7 @@ fmtcheck: lint: @echo "==> Checking source code against linters..." - @golangci-lint run ./$(DIR_NAME) + @GOGC=off golangci-lint run -v ./$(DIR_NAME) tools: @echo "==> installing required tooling..."