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
|
// update the values in the GUI
|
||||||
me.current.NewScan()
|
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
|
// attempt to find another repo to release
|
||||||
if !doReleaseFindNext() {
|
if !doReleaseFindNext() {
|
||||||
|
|
3
main.go
3
main.go
|
@ -25,7 +25,7 @@ func main() {
|
||||||
|
|
||||||
// load the ~/.config/forge/ config
|
// load the ~/.config/forge/ config
|
||||||
me.forge = forgepb.Init()
|
me.forge = forgepb.Init()
|
||||||
me.forge.ConfigPrintTable()
|
// me.forge.ConfigPrintTable()
|
||||||
os.Setenv("REPO_WORK_PATH", me.forge.GetGoSrc())
|
os.Setenv("REPO_WORK_PATH", me.forge.GetGoSrc())
|
||||||
|
|
||||||
// parse the command line
|
// parse the command line
|
||||||
|
@ -83,7 +83,6 @@ func main() {
|
||||||
// which should be all the git repositories in ~/go/src & the .config file
|
// which should be all the git repositories in ~/go/src & the .config file
|
||||||
me.repos = makeRepoView()
|
me.repos = makeRepoView()
|
||||||
|
|
||||||
|
|
||||||
if myargs.DumpVersions {
|
if myargs.DumpVersions {
|
||||||
gowit.DumpVersions(me.repos.View)
|
gowit.DumpVersions(me.repos.View)
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
|
Loading…
Reference in New Issue