golang 1.13 support for linting

This commit is contained in:
Alex Goodman 2019-09-17 21:13:46 -04:00
parent a27a61e094
commit 9236307e29
No known key found for this signature in database
GPG key ID: 98AF011C5C78EB7E
2 changed files with 7 additions and 6 deletions

View file

@ -12,8 +12,7 @@ jobs:
- restore_cache:
keys:
- golang-1.11-{{ checksum "go.sum" }}
- run: go get ./...
- run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.17.1
- run: make setup
- save_cache:
key: golang-1.11-{{ checksum "go.sum" }}
paths:
@ -33,8 +32,7 @@ jobs:
- restore_cache:
keys:
- golang-1.12-{{ checksum "go.sum" }}
- run: go get ./...
- run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.17.1
- run: make setup
- save_cache:
key: golang-1.12-{{ checksum "go.sum" }}
paths:
@ -54,8 +52,7 @@ jobs:
- restore_cache:
keys:
- golang-1.13-{{ checksum "go.sum" }}
- run: go get ./...
- run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.17.1
- run: make setup
- save_cache:
key: golang-1.13-{{ checksum "go.sum" }}
paths:

View file

@ -41,6 +41,10 @@ lint: build
generate-test-data:
docker build -t dive-test:latest -f .data/Dockerfile.test-image . && docker image save -o .data/test-docker-image.tar dive-test:latest && echo "Exported test data!"
setup:
go get ./...
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.18.0
clean:
rm -rf build
go clean