maybe actually works
This commit is contained in:
parent
fbc3dae556
commit
0ec680f2c3
12
findNext.go
12
findNext.go
|
@ -91,11 +91,15 @@ func checkDeps(repo *gitpb.Repo) error {
|
|||
return fmt.Errorf("%s is waiting on %s", repo.GetGoPath(), found.GetGoPath())
|
||||
}
|
||||
}
|
||||
|
||||
// found package isn't being published. is the version correct?
|
||||
if found.GetLastTag() == dep.Version {
|
||||
return fmt.Errorf("%s version mismatch on %s (%s vs %s)", repo.GetGoPath(), found.GetGoPath(), found.GetLastTag(), dep.Version)
|
||||
}
|
||||
// never check this? we are done?
|
||||
/*
|
||||
if found.GetLastTag() == dep.Version {
|
||||
// everything is normal
|
||||
} else {
|
||||
return fmt.Errorf("%s version mismatch on %s (%s vs %s)", repo.GetGoPath(), found.GetGoPath(), found.GetLastTag(), dep.Version)
|
||||
}
|
||||
*/
|
||||
}
|
||||
// everything might be cool?
|
||||
return nil
|
||||
|
|
|
@ -15,11 +15,6 @@ func makePrepareRelease() {
|
|||
me.release.box.Disable()
|
||||
defer me.Enable()
|
||||
|
||||
now := time.Now()
|
||||
me.forge.RillFuncError(rillRestore)
|
||||
// slowRestore()
|
||||
log.Printf("showRestore() (%d total repos) took:%s\n", me.forge.Repos.Len(), shell.FormatDuration(time.Since(now)))
|
||||
|
||||
// run this each time something gets published successfully
|
||||
rePrepareRelease()
|
||||
|
||||
|
@ -84,9 +79,10 @@ func rePrepareRelease() {
|
|||
me.forge = forgepb.Init()
|
||||
me.found = new(gitpb.Repos)
|
||||
|
||||
// now := time.Now()
|
||||
// me.forge.RillFuncError(rillGoModRestore)
|
||||
// log.Printf("rillFixGodeps() (%d total repos) took:%s\n", me.forge.Repos.Len(), shell.FormatDuration(time.Since(now)))
|
||||
now := time.Now()
|
||||
me.forge.RillFuncError(rillRestore)
|
||||
// slowRestore()
|
||||
log.Printf("showRestore() (%d total repos) took:%s\n", me.forge.Repos.Len(), shell.FormatDuration(time.Since(now)))
|
||||
|
||||
all := me.forge.Repos.SortByFullPath()
|
||||
for all.Scan() {
|
||||
|
|
Loading…
Reference in New Issue