Skip to content

Commit

Permalink
Don't lint traffic-manager/traffic-agent code on windows.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Hallgren <[email protected]>
  • Loading branch information
thallgren committed May 4, 2024
1 parent 60d5938 commit a98f114
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-aux/main.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a98f114

Please sign in to comment.