attempt to save pb and reload it
This commit is contained in:
parent
db2296b5b4
commit
9e297f4603
|
@ -11,6 +11,7 @@ import (
|
||||||
"github.com/go-cmd/cmd"
|
"github.com/go-cmd/cmd"
|
||||||
|
|
||||||
"go.wit.com/lib/gui/shell"
|
"go.wit.com/lib/gui/shell"
|
||||||
|
"go.wit.com/lib/protobuf/forgepb"
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -193,9 +194,10 @@ func doRelease() bool {
|
||||||
badExit(errors.New(msg))
|
badExit(errors.New(msg))
|
||||||
}
|
}
|
||||||
|
|
||||||
// it's necessary to recreate the the files here
|
me.forge.ConfigSave()
|
||||||
// safe to do this here. everything has been published
|
cmd := []string{"forge", "--delete", check.GetGoPath()}
|
||||||
fixGodeps(check)
|
shell.RunRealtime(cmd)
|
||||||
|
me.forge = forgepb.Init()
|
||||||
|
|
||||||
// update the values in the GUI
|
// update the values in the GUI
|
||||||
me.current.NewScan()
|
me.current.NewScan()
|
||||||
|
|
|
@ -19,15 +19,13 @@ func makePrepareRelease() {
|
||||||
log.Info("setAllBranchesToMaster() failed")
|
log.Info("setAllBranchesToMaster() failed")
|
||||||
}
|
}
|
||||||
|
|
||||||
// reset all the target versions back to the current version
|
// blank all the target versions incase they were saved in the config .pb file
|
||||||
// incase they were saved in the repos.pb file
|
|
||||||
all := me.forge.Repos.SortByFullPath()
|
all := me.forge.Repos.SortByFullPath()
|
||||||
for all.Scan() {
|
for all.Scan() {
|
||||||
check := all.Next()
|
check := all.Next()
|
||||||
|
|
||||||
// set the target version to the current master version
|
// set the target version to the current master version
|
||||||
curver := check.GetMasterVersion()
|
check.SetTargetVersion("")
|
||||||
check.SetTargetVersion(curver)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
all = me.forge.Repos.SortByFullPath()
|
all = me.forge.Repos.SortByFullPath()
|
||||||
|
|
Loading…
Reference in New Issue