From 9b6a019081d1c4e7807ef4e85f1d119f1734a3d2 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 29 Jan 2020 15:53:03 +0100 Subject: [PATCH] prevent dev-tools from updating go.mod Signed-off-by: Sebastiaan van Stijn --- .travis.yml | 2 +- script/setup/install-dev-tools | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8c0754d0..6fa05b8e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ before_install: - sudo apt-get -q update install: - - go get -u github.com/vbatts/git-validation + - cd /tmp && go get -u github.com/vbatts/git-validation # TODO: Add enforcement of license # - go get -u github.com/kunalkushwaha/ltag - cd $TRAVIS_BUILD_DIR diff --git a/script/setup/install-dev-tools b/script/setup/install-dev-tools index 1695621a..68be3790 100755 --- a/script/setup/install-dev-tools +++ b/script/setup/install-dev-tools @@ -5,5 +5,7 @@ # set -eu -o pipefail +# 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