From 5b6bec028723ad8604e8fbb36997c83fe27262a3 Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Mon, 12 Sep 2022 22:05:03 -0700 Subject: [PATCH] Reintroduce go mod init/tidy and remove old vendor dir if present --- bacillus/ci_pushbuild.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bacillus/ci_pushbuild.sh b/bacillus/ci_pushbuild.sh index b94f39e..b6092c2 100755 --- a/bacillus/ci_pushbuild.sh +++ b/bacillus/ci_pushbuild.sh @@ -28,11 +28,13 @@ ls ############ stage "Build" ############ +echo "Removing any vendor/ dir if present ..." +rm -rf vendor echo "Recreating go.mod from scratch ..." -#!mv go.mod go.mod.git || true -#!mv go.sum go.sum.git || true -#!go mod init -#!go mod tidy +mv go.mod go.mod.git || true +mv go.sum go.sum.git || true +go mod init +go mod tidy echo "Cleaning go mod cache ..." go clean -modcache