fixes for new gitpb

This commit is contained in:
Jeff Carr 2024-12-17 07:09:22 -06:00
parent edfa36b419
commit 7396af67a1
1 changed files with 5 additions and 5 deletions

10
main.go
View File

@ -8,23 +8,23 @@ import (
// go will sit here until the window exits
func main() {
forge := forgepb.Init()
all := forge.Repos.SortByGoPath()
all := forge.Repos.SortByFullPath()
for all.Scan() {
check := all.Next()
repotype := check.RepoType()
repotype := check.GetRepoType()
if repotype != "plugin" {
continue
}
if forge.Config.IsReadOnly(check.GoPath) {
if forge.Config.IsReadOnly(check.GetGoPath()) {
// ignore read only stuff
continue
}
log.Info("STARTING 'make install' in", check.GoPath)
log.Info("STARTING 'make install' in", check.GetGoPath())
if err := forge.Install(check, nil); err != nil {
log.Warn("INSTALL FAILED", check.GoPath, err)
log.Warn("INSTALL FAILED", check.GetGoPath(), err)
}
}
}