From d4a11d19e94f7fa1bccbfa430bb70b441a66edd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sun, 23 Dec 2018 08:29:56 +0000 Subject: [PATCH] fix(ci): pre-download go modules before running concurrent jobs Go modules can run into races when concurrently downloading packages --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 64a8a25ac..92d47b697 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,6 +42,8 @@ jobs: - DESC="Lint Go code" before_script: - make mock-assets + # https://github.com/golang/go/issues/26794 + - GO111MODULE=on go mod download script: make lint-go - stage: Lint @@ -75,6 +77,8 @@ jobs: - nvm install $(< .nvmrc) script: - export GO111MODULE=on + # https://github.com/golang/go/issues/26794 + - go mod download # compile assets via webpack and build those into bindata_assetfs.go file - make bindata_assetfs.go # verify that there are no uncommited changes from (re)compiling sass