summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doRelease.go8
-rw-r--r--prepareRelease.go6
2 files changed, 7 insertions, 7 deletions
diff --git a/doRelease.go b/doRelease.go
index fd2aa0e..4c19b98 100644
--- a/doRelease.go
+++ b/doRelease.go
@@ -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()
diff --git a/prepareRelease.go b/prepareRelease.go
index e12a67c..043597b 100644
--- a/prepareRelease.go
+++ b/prepareRelease.go
@@ -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()