summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-01 10:42:49 -0600
committerJeff Carr <[email protected]>2024-12-01 10:42:49 -0600
commit6ee304e830b529dc815b3283192f3bab287371ea (patch)
treecd5a0a751791b2d129936bd86af32ae18cf56311
parent935767fde1842c9e39c1b0d0f26138ac7ddca030 (diff)
attempt to set repo.Publishedv0.22.23
-rw-r--r--doRelease.go15
-rw-r--r--main.go3
-rw-r--r--repoview.go10
3 files changed, 21 insertions, 7 deletions
diff --git a/doRelease.go b/doRelease.go
index 58fdc5e..4b82bb1 100644
--- a/doRelease.go
+++ b/doRelease.go
@@ -115,6 +115,21 @@ func doRelease() bool {
// update the values in the GUI
me.current.NewScan()
+ pb := me.forge.Repos.FindByGoPath(me.current.GoPath())
+ if pb != 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() {
diff --git a/main.go b/main.go
index 5463b04..cc531e3 100644
--- a/main.go
+++ b/main.go
@@ -25,7 +25,7 @@ func main() {
// load the ~/.config/forge/ config
me.forge = forgepb.Init()
- me.forge.ConfigPrintTable()
+ // me.forge.ConfigPrintTable()
os.Setenv("REPO_WORK_PATH", me.forge.GetGoSrc())
// parse the command line
@@ -83,7 +83,6 @@ func main() {
// which should be all the git repositories in ~/go/src & the .config file
me.repos = makeRepoView()
-
if myargs.DumpVersions {
gowit.DumpVersions(me.repos.View)
os.Exit(0)
diff --git a/repoview.go b/repoview.go
index 59d76ec..2bc32c6 100644
--- a/repoview.go
+++ b/repoview.go
@@ -68,12 +68,12 @@ func makeRepoView() *repoWindow {
r.View.ScanRepositories()
/*
- r.View = repolist.GuireleaserView(r.box)
+ r.View = repolist.GuireleaserView(r.box)
- showncount := r.View.MirrorShownCount()
- box2.Append(showncount)
- duration := r.View.MirrorScanDuration()
- box2.Append(duration)
+ showncount := r.View.MirrorShownCount()
+ box2.Append(showncount)
+ duration := r.View.MirrorScanDuration()
+ box2.Append(duration)
*/
return r
}