parent
8d7f182be7
commit
9c6890134a
|
@ -2,6 +2,8 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"go.wit.com/gui"
|
||||
"go.wit.com/lib/debugger"
|
||||
"go.wit.com/lib/gui/logsettings"
|
||||
|
@ -97,6 +99,7 @@ func globalDisplayOptions(box *gui.Node) {
|
|||
|
||||
var longB *gui.Node
|
||||
longB = group1.NewButton("redo go.sum", func() {
|
||||
os.Unsetenv("GO111MODULE")
|
||||
longB.Disable()
|
||||
me.Disable()
|
||||
for _, repo := range me.allrepos {
|
||||
|
@ -105,10 +108,10 @@ func globalDisplayOptions(box *gui.Node) {
|
|||
}
|
||||
if repo.status.MakeRedomod() {
|
||||
log.Info("redo go.sum failed on", repo.String())
|
||||
me.Enable()
|
||||
longB.Enable()
|
||||
longB.SetLabel("FAILED")
|
||||
return
|
||||
// me.Enable()
|
||||
// longB.Enable()
|
||||
// longB.SetLabel("FAILED")
|
||||
// return
|
||||
}
|
||||
}
|
||||
log.Info("redo go.sum finished ok!")
|
||||
|
|
|
@ -139,6 +139,15 @@ func createReleaseBox(box *gui.Node) {
|
|||
if doAll(release.current, all) {
|
||||
log.Info("EVERYTHING OK")
|
||||
release.current.setGoSumStatus("RELEASED")
|
||||
|
||||
os.Unsetenv("GO111MODULE")
|
||||
gopath := release.current.String()
|
||||
cmd := []string{"go", "get", "-v", gopath + "@" + release.version.String()}
|
||||
log.Info("SHOULD RUN cmd HERE to update myself:", cmd)
|
||||
log.Info("SHOULD RUN cmd HERE:", cmd)
|
||||
log.Info("SHOULD RUN cmd HERE:", cmd)
|
||||
|
||||
// release.current.status.RunCmd(
|
||||
buttonEnable()
|
||||
} else {
|
||||
log.Info("SOMETHING FAILED")
|
||||
|
|
Loading…
Reference in New Issue