From ac28b2c69221e5382c0e33db0d3f872ed2725cbf Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Thu, 20 Feb 2020 20:18:43 +0100 Subject: [PATCH] travis: remove git clone depth limitation to fix linter By default, Travis-CI does `git clone --depth=50` which limits the repo to the last 50 commits. Because we do linting against an old commit, it cannot be found any more. We remove the limit completely to not run into this problem again. --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 35e39df2..c996ca51 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,11 @@ cache: - $GOPATH/src/github.com/golang - $GOPATH/src/gopkg.in/alecthomas +# Remove Travis' default flag --depth=50 from the git clone command to make sure +# we have the whole git history, including the commit we lint against. +git: + depth: false + go: - "1.13.x"