Reintroduce go mod init/tidy and remove old vendor dir if present

This commit is contained in:
Russ Magee 2022-09-12 22:05:03 -07:00
parent 653e732445
commit 5b6bec0287

View file

@ -28,11 +28,13 @@ ls
############ ############
stage "Build" stage "Build"
############ ############
echo "Removing any vendor/ dir if present ..."
rm -rf vendor
echo "Recreating go.mod from scratch ..." echo "Recreating go.mod from scratch ..."
#!mv go.mod go.mod.git || true mv go.mod go.mod.git || true
#!mv go.sum go.sum.git || true mv go.sum go.sum.git || true
#!go mod init go mod init
#!go mod tidy go mod tidy
echo "Cleaning go mod cache ..." echo "Cleaning go mod cache ..."
go clean -modcache go clean -modcache