From ed089e3f424d125c02bcd65e921d8f28fe84f28c Mon Sep 17 00:00:00 2001 From: Riley Karson Date: Mon, 1 Apr 2019 13:23:40 -0700 Subject: [PATCH] Update generate-terraform.sh --- .ci/magic-modules/generate-terraform.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/magic-modules/generate-terraform.sh b/.ci/magic-modules/generate-terraform.sh index 033eb55df671..4fd9e077c79b 100755 --- a/.ci/magic-modules/generate-terraform.sh +++ b/.ci/magic-modules/generate-terraform.sh @@ -70,13 +70,13 @@ git config --global user.name "Modular Magician" git add -A -# TODO: Remove this, this is just to see what the Magician does +# This is useful for human debugging, but not necessary for the Magician. git status -# go mod vendor is a very expensive operation. -# If no changes, avoid running. +# Only run `go mod vendor` if we see changes in this downstream repo, since it takes a while to run if [[ ! -z $(git status -s) ]]; then GO111MODULE=on go mod vendor + git add -A fi # Set the "author" to the commit's real author.