From 17948911021f6b06988ec6aa6caafed2392c55f7 Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Wed, 9 Oct 2019 15:40:24 +0100 Subject: [PATCH] fix(ci): By using fix version of dep which is compatible with go 1.12 --- .travis.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d9f8a021aae..cd3c6392bfd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,9 @@ os: go: - "1.12" +env: + - GOPROXY=https://proxy.golang.org/ + git: depth: 3 @@ -21,7 +24,9 @@ services: - docker before_install: -- go get -u github.com/golang/dep/cmd/dep +# NOTE: The latest version of dep requires go 1.13 +- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir -p /Users/travis/gopath/bin; fi +- GO111MODULE=on curl https://raw.githubusercontent.com/golang/dep/v0.5.1/install.sh | sh - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then GO111MODULE=on scripts/install_and_setup.sh; fi before_script: