From 64dcd781f8bf06019bfc201e66d6baba6eb4ca33 Mon Sep 17 00:00:00 2001 From: Luke Kysow Date: Fri, 16 Mar 2018 13:26:50 -0700 Subject: [PATCH] Workaround for gometalint randomly failing. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 21376b75b..442d4b90e 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,8 @@ gometalint: ## Run every linter ever # maligned is disabled because I'd rather have alphabetical struct fields than save a few bytes # gocyclo is temporarily disabled because we don't pass it right now # golint is temporarily disabled because we need to add comments everywhere first - gometalinter --disable gotype --disable gotypex --disable maligned --disable gocyclo --disable golint --enable=megacheck --enable=unparam --linter='gas:gas -exclude=G104 -fmt=csv:^(?P.*?\.go),(?P\d+),(?P[^,]+,[^,]+,[^,]+)' --deadline=300s --vendor -t --line-length=120 --skip server/static ./... + # CGO_ENABLED=0 is attempted workaround for https://github.com/alecthomas/gometalinter/issues/149 + CGO_ENABLED=0 gometalinter --disable gotype --disable gotypex --disable maligned --disable gocyclo --disable golint --enable=megacheck --enable=unparam --linter='gas:gas -exclude=G104 -fmt=csv:^(?P.*?\.go),(?P\d+),(?P[^,]+,[^,]+,[^,]+)' --deadline=300s --vendor -t --line-length=120 --skip server/static ./... gometalint-install: ## Install gometalint go get -u github.com/alecthomas/gometalinter