Skip to content

Commit c4c26c9

Browse files
committed
ci(travis): Bump golangci-lint version
The current recommended installation steps use githubusercontent.com instead of goreleaser.com. There has been a reported issue in which the installer code differed between the two sites. golangci/golangci-lint#575 Additionally, pin to a specific tagged version of the install script to ensure reproducible installations of the tool. Use version 1.19.1. The latest two releases (1.21.0, 1.20.0) have a flaky bug (at least on macOS) that prevents the linter to run while still exiting with code 0 (success). ``` ~/s/sentry-go ❯❯❯ golangci-lint run WARN [runner] Can't run linter goanalysis_metalinter: assign: failed prerequisites: [email protected]/getsentry/sentry-go/echo ~/s/sentry-go ❯❯❯ golangci-lint run WARN [runner] Can't run linter goanalysis_metalinter: interfacer: failed prerequisites: [email protected]/getsentry/sentry-go/echo ``` See - golangci/golangci-lint#866 - golangci/golangci-lint#827
1 parent 4b26b23 commit c4c26c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ env:
1010
- GO111MODULE=on GOFLAGS=-mod=readonly
1111

1212
before_install:
13-
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.15.0
13+
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/v1.19.1/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.19.1
14+
1415

1516
script:
1617
- golangci-lint run

0 commit comments

Comments
 (0)