attempt to set repo.Published
This commit is contained in:
parent
935767fde1
commit
6ee304e830
15
doRelease.go
15
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() {
|
||||
|
|
3
main.go
3
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)
|
||||
|
|
10
repoview.go
10
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue