diff --git a/dev/atc.dev.sh b/dev/atc.dev.sh index 9d3a819c87..7bf0a92923 100644 --- a/dev/atc.dev.sh +++ b/dev/atc.dev.sh @@ -15,10 +15,16 @@ # specific language governing permissions and limitations # under the License. -alias atc-start="docker-compose up -d --build"; alias atc-build="docker-compose build"; alias atc-stop="docker-compose kill && docker-compose down -v --remove-orphans"; +function atc-start { + if [ ! -d "vendor/golang.org/x" ]; then + go mod vendor + fi + docker-compose up -d --build +} + function atc-restart { if ! atc-stop $@; then return 1;