mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
Reintroduce go mod init/tidy and remove old vendor dir if present
This commit is contained in:
parent
653e732445
commit
5b6bec0287
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue