Merge pull request #3187 from bloodorangeio/fix-ci

Fix CI failures, upgrade to Go 1.14+
This commit is contained in:
Sebastiaan van Stijn 2020-06-29 19:14:34 +02:00 committed by GitHub
commit 62d0fd45e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View file

@ -7,7 +7,7 @@ services:
language: go
go:
- "1.13.x"
- "1.14.x"
go_import_path: github.com/docker/distribution

View file

@ -1,11 +1,17 @@
#!/usr/bin/env bash
GOLANGCI_LINT_VERSION="v1.27.0"
GO_MD2MAN_VERSION="v1.0.10"
#
# Install developer tools to $GOBIN (or $GOPATH/bin if unset)
#
set -eu -o pipefail
# Enable Go modules
export GO111MODULE=on
# prevent updating go.mod of the project
cd /tmp
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
go get -u github.com/cpuguy83/go-md2man
go get "github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION}"
go get "github.com/cpuguy83/go-md2man@${GO_MD2MAN_VERSION}"