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