From 34a5df059d4fdb4d75a551e2113f81613227b6c7 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Fri, 15 Sep 2017 19:32:38 +0200 Subject: [PATCH] build-style: check for Gopkg.{toml,lock} in go --- common/build-style/go.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/build-style/go.sh b/common/build-style/go.sh index a8728683ad8..71c6e55da09 100644 --- a/common/build-style/go.sh +++ b/common/build-style/go.sh @@ -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