maybe actually works

This commit is contained in:
Jeff Carr 2025-01-20 08:14:18 -06:00
parent fbc3dae556
commit 0ec680f2c3
2 changed files with 12 additions and 12 deletions

View File

@ -91,11 +91,15 @@ func checkDeps(repo *gitpb.Repo) error {
return fmt.Errorf("%s is waiting on %s", repo.GetGoPath(), found.GetGoPath()) return fmt.Errorf("%s is waiting on %s", repo.GetGoPath(), found.GetGoPath())
} }
} }
// found package isn't being published. is the version correct? // found package isn't being published. is the version correct?
// never check this? we are done?
/*
if found.GetLastTag() == dep.Version { 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) return fmt.Errorf("%s version mismatch on %s (%s vs %s)", repo.GetGoPath(), found.GetGoPath(), found.GetLastTag(), dep.Version)
} }
*/
} }
// everything might be cool? // everything might be cool?
return nil return nil

View File

@ -15,11 +15,6 @@ func makePrepareRelease() {
me.release.box.Disable() me.release.box.Disable()
defer me.Enable() 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 // run this each time something gets published successfully
rePrepareRelease() rePrepareRelease()
@ -84,9 +79,10 @@ func rePrepareRelease() {
me.forge = forgepb.Init() me.forge = forgepb.Init()
me.found = new(gitpb.Repos) me.found = new(gitpb.Repos)
// now := time.Now() now := time.Now()
// me.forge.RillFuncError(rillGoModRestore) me.forge.RillFuncError(rillRestore)
// log.Printf("rillFixGodeps() (%d total repos) took:%s\n", me.forge.Repos.Len(), shell.FormatDuration(time.Since(now))) // slowRestore()
log.Printf("showRestore() (%d total repos) took:%s\n", me.forge.Repos.Len(), shell.FormatDuration(time.Since(now)))
all := me.forge.Repos.SortByFullPath() all := me.forge.Repos.SortByFullPath()
for all.Scan() { for all.Scan() {