Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Commit 2e492ad

Browse files
committed
Fixup golangci-lint Travis job
Turn off modules to workaround this issue: golangci/golangci-lint#730 increase the deadline from 1m -> 5m, we were seeing "deadline exceeded" errors causing build failures
1 parent eb64a84 commit 2e492ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ jobs:
4040

4141
- stage: Test and Lint
4242
name: Go
43-
install: go get "github.com/golangci/golangci-lint/cmd/golangci-lint"
43+
install: GO111MODULE=off go get "github.com/golangci/golangci-lint/cmd/golangci-lint"
4444
script:
45-
- golangci-lint run -D errcheck -E goimports -E interfacer -E scopelint ./...
45+
- golangci-lint --deadline=5m run -D errcheck -E goimports -E interfacer -E scopelint ./...
4646
- go test ./...
4747

4848
- stage: Test and Lint

0 commit comments

Comments
 (0)