From 8d89ac138c86f2f8292d2c831e09aad8b84baa28 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Mon, 30 Mar 2020 11:27:30 +0200 Subject: [PATCH] Use less memory for linting Signed-off-by: David Gageot --- hack/linter.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hack/linter.sh b/hack/linter.sh index 27b3769ba2f..9c45d2afb61 100755 --- a/hack/linter.sh +++ b/hack/linter.sh @@ -37,6 +37,9 @@ fi VERBOSE="" if [[ "${TRAVIS}" == "true" ]]; then + # Use less memory on Travis + # See https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint + export GOGC=10 VERBOSE="-v --print-resources-usage" fi