package main import ( "os" "go.wit.com/log" ) func makePrepareRelease() { me.Disable() me.release.box.Disable() defer me.Enable() loop := me.repos.View.ReposSortByName() for loop.Scan() { repo := loop.Repo() // check if the package dependancies changed, if so, re-publish check := me.forge.Repos.FindByGoPath(repo.GoPath()) if check == nil { log.Info("boo, you didn't git clone", repo.GoPath()) os.Exit(-1) } if me.forge.FinalGoDepsCheck(check) { log.Printf("dependancy checks indicate a new release is needed for %s\n", check.GetGoPath()) repo.Status.IncrementRevisionVersion("godeps changed") target := repo.Status.GetTargetVersion() check.SetTargetVersion(target) continue } else { log.Printf("dependancies have not changed for %s\n", check.GetGoPath()) } // see if there is a new version master := repo.Status.GetMasterVersion() lastTag := repo.Status.LastTag() if master == lastTag { repo.Status.SetTargetVersion(master) } else { repo.Status.IncrementRevisionVersion("Nov 2024 test") target := repo.Status.GetTargetVersion() check.SetTargetVersion(target) } } findNext() if setAllBranchesToMaster() { // if it succeeds, disable this button me.setBranchesToMasterB.Disable() me.release.box.Enable() PrintReleaseReport("", "") } else { log.Info("setAllBranchesToMaster() failed") } }