build-style: check for Gopkg.{toml,lock} in go

This commit is contained in:
Andrea Brancaleoni 2017-09-15 19:32:38 +02:00 committed by Andrea Brancaleoni
parent f0a208c071
commit 34a5df059d
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ do_build() {
ln -fs $PWD "${path}"
fi
if [[ -x /usr/bin/dep ]]; then
if [ -x /usr/bin/dep ] && [ -f Gopkg.toml ] && [ -f Gopkg.lock ]; then
cd "${path}"
dep ensure
fi