Handle missing go.mod, go.sum

This commit is contained in:
Russ Magee 2022-05-01 23:19:50 -07:00
parent a4af720280
commit 0765c8bea6
3 changed files with 22 additions and 11 deletions

View file

@ -29,8 +29,8 @@ ls
stage "Build"
############
echo "Recreating go.mod from scratch ..."
mv go.mod go.mod.git
mv go.sum go.sum.git
mv go.mod go.mod.git || true
mv go.sum go.sum.git || true
go mod init
go mod tidy