attempt to set repo.Published

This commit is contained in:
Jeff Carr 2024-12-01 10:42:49 -06:00
parent 935767fde1
commit 6ee304e830
3 changed files with 21 additions and 7 deletions

View File

@ -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() {

View File

@ -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)

View File

@ -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
}