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

View File

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