From cbfc856c95a9dccc33eebb78ca85705780e62b9b Mon Sep 17 00:00:00 2001 From: John Strunk Date: Thu, 20 Dec 2018 11:21:58 -0500 Subject: [PATCH] Change gml timeout to 24h cloud.docker.com has been timing out when building the container, and it looks like this may be due to the linter timing out. This changes the timeout to 24hrs (effectively removing it) Signed-off-by: John Strunk --- scripts/lint-go.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/lint-go.sh b/scripts/lint-go.sh index a20dbccb7..d35d58960 100755 --- a/scripts/lint-go.sh +++ b/scripts/lint-go.sh @@ -3,10 +3,11 @@ set -o pipefail if [[ -x "$(command -v gometalinter)" ]]; then - # shellcheck disable=SC2086,SC2068 - gometalinter -j ${GO_METALINTER_THREADS:-1} --sort path --sort line --sort column --deadline=9m \ + gometalinter -j "${GO_METALINTER_THREADS:-1}" \ + --sort path --sort line --sort column --deadline=24h \ --enable="gofmt" --exclude "method NodeGetId should be NodeGetID" \ - --vendor --debug ${@-./...} |& stdbuf -oL grep "linter took\\|:warning:\\|:error:" + --vendor --debug "${@-./...}" \ + |& stdbuf -oL grep "linter took\\|:warning:\\|:error:" else echo "WARNING: gometalinter not found, skipping lint tests" >&2 fi