From 81ba770effcdebec174a8a330a85e34622410641 Mon Sep 17 00:00:00 2001 From: jdolitsky <393494+jdolitsky@users.noreply.github.com> Date: Fri, 26 Jun 2020 10:27:53 -0500 Subject: [PATCH] Fix CI failures, upgrade to Go 1.14+ - Modify Travis manifest to use Go 1.14.x - Hardcode version of golangci-lint in setup script - Hardcode version of go-md2man in setup script Signed-off-by: jdolitsky <393494+jdolitsky@users.noreply.github.com> --- .travis.yml | 2 +- script/setup/install-dev-tools | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6fa05b8e..ef602ac4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ services: language: go go: - - "1.13.x" + - "1.14.x" go_import_path: github.com/docker/distribution diff --git a/script/setup/install-dev-tools b/script/setup/install-dev-tools index 68be3790..9e7012a9 100755 --- a/script/setup/install-dev-tools +++ b/script/setup/install-dev-tools @@ -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}"