summaryrefslogtreecommitdiff
path: root/doRelease.go
diff options
context:
space:
mode:
Diffstat (limited to 'doRelease.go')
-rw-r--r--doRelease.go34
1 files changed, 16 insertions, 18 deletions
diff --git a/doRelease.go b/doRelease.go
index e350db3..a7fe903 100644
--- a/doRelease.go
+++ b/doRelease.go
@@ -98,6 +98,19 @@ func doRelease() bool {
return false
}
+ pb := me.forge.Repos.FindByGoPath(me.current.GoPath())
+ if pb != nil {
+ pb.UpdatePublished()
+ if !pb.GetGoPrimitive() {
+ loop := pb.Published.SortByGoPath()
+ for loop.Scan() {
+ t := loop.Next()
+ log.Info("new Published dep:", t.GetGoPath(), t.GetVersion())
+ }
+ }
+ me.forge.Repos.ConfigSave()
+ }
+
log.Info("PUBLISH OK")
// me.current.SetGoState("RELEASED")
@@ -121,26 +134,11 @@ func doRelease() bool {
}
log.Info("EVERYTHING OK. RERELEASED", me.current.Name())
+ // recreate go.mod / go.sum
+ fixGodeps(me.current)
+
// update the values in the GUI
me.current.NewScan()
- pb := me.forge.Repos.FindByGoPath(me.current.GoPath())
- if pb != nil {
- pb.ParseGoSum()
- if pb.Published != nil {
- loop := pb.Published.SortByGoPath()
- for loop.Scan() {
- t := loop.Next()
- log.Info("orig Published dep:", t.GetGoPath(), t.GetVersion())
- }
- }
- pb.UpdatePublished()
- loop := pb.Published.SortByGoPath()
- for loop.Scan() {
- t := loop.Next()
- log.Info("new Published dep:", t.GetGoPath(), t.GetVersion())
- }
- me.forge.Repos.ConfigSave()
- }
// attempt to find another repo to release
if !doReleaseFindNext() {