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