diff --git a/build-aux/main.mk b/build-aux/main.mk index 3cfe1e8cc4..9ee9d11cf8 100644 --- a/build-aux/main.mk +++ b/build-aux/main.mk @@ -369,7 +369,11 @@ lint: lint-rpc lint-go lint-go: lint-deps ## (QA) Run the golangci-lint $(eval badimports = $(shell find cmd integration_test pkg -name '*.go' | grep -v '/mocks/' | xargs $(tools/gosimports) --local github.com/datawire/,github.com/telepresenceio/ -l)) $(if $(strip $(badimports)), echo "The following files have bad import ordering (use make format to fix): " $(badimports) && false) +ifeq ($(GOHOSTOS),windows) + CGO_ENABLED=$(CGO_ENABLED) $(tools/golangci-lint) run --timeout 8m ./cmd/telepresence/... ./integration_test/... ./pkg/... +else CGO_ENABLED=$(CGO_ENABLED) $(tools/golangci-lint) run --timeout 8m ./... +endif lint-rpc: lint-deps ## (QA) Run rpc linter $(tools/protolint) lint rpc