Skip to content

Commit

Permalink
Switched off GOGC for linter (#4546)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
melinath authored Aug 2, 2022
1 parent 7b8e255 commit 849dbbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
run:
timeout: 4m
timeout: 5m

linters:
disable-all: true
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down

0 comments on commit 849dbbd

Please sign in to comment.