From e1adfb0d478da4953310f58ae2ed135b3fb6201c Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Mon, 25 Nov 2019 23:24:54 +0530 Subject: [PATCH] Run golangci-lint on EE packages if present (#13143) The Go toolchain doesn't work with symlinks. Hence we need to explicitly mention the directory name for it to work. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 42eec4604a..ebb81ae824 100644 --- a/Makefile +++ b/Makefile @@ -159,7 +159,10 @@ golangci-lint: ## Run golangci-lint on codebase fi; \ @echo Running golangci-lint - golangci-lint run + golangci-lint run ./... +ifeq ($(BUILD_ENTERPRISE_READY),true) + golangci-lint run ./enterprise/... +endif i18n-extract: ## Extract strings for translation from the source code env GO111MODULE=off go get -u github.com/mattermost/mattermost-utilities/mmgotool