recreate go.sum (happens after guireleaser is released)
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
1554249afd
commit
cd4bd5b914
|
@ -3,8 +3,10 @@ package main
|
|||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"go.wit.com/lib/gui/shell"
|
||||
"go.wit.com/log"
|
||||
)
|
||||
|
||||
|
@ -165,6 +167,12 @@ func doPublishVersion() bool {
|
|||
log.Info("CAN NOT SELF UPDATE HERE. cmd =", cmd)
|
||||
return false
|
||||
}
|
||||
homeDir, _ := os.UserHomeDir()
|
||||
gosum := filepath.Join(homeDir, "go/src/go.wit.com/apps/guireleaser/go.sum")
|
||||
if !shell.Exists(gosum) {
|
||||
log.Info("go.sum must exist here")
|
||||
release.guireleaser.status.MakeRedomod()
|
||||
}
|
||||
os.Unsetenv("GO111MODULE")
|
||||
log.Info("TRYING TO SELF UPDATE HERE. cmd =", cmd)
|
||||
err, out := release.guireleaser.status.RunCmd(cmd)
|
||||
|
|
Loading…
Reference in New Issue