go-gui-toolkits/main.go

31 lines
589 B
Go
Raw Normal View History

2024-02-12 07:47:00 -06:00
package main
2024-12-14 22:15:13 -06:00
import (
"go.wit.com/lib/protobuf/forgepb"
2024-02-12 07:47:00 -06:00
"go.wit.com/log"
)
// go will sit here until the window exits
func main() {
2024-12-14 22:15:13 -06:00
forge := forgepb.Init()
2024-12-17 07:09:22 -06:00
all := forge.Repos.SortByFullPath()
2024-12-14 22:15:13 -06:00
for all.Scan() {
check := all.Next()
2024-02-12 07:47:00 -06:00
2024-12-17 07:09:22 -06:00
repotype := check.GetRepoType()
2024-12-14 22:15:13 -06:00
if repotype != "plugin" {
continue
}
2024-02-12 07:47:00 -06:00
2024-12-17 07:09:22 -06:00
if forge.Config.IsReadOnly(check.GetGoPath()) {
2024-12-14 22:15:13 -06:00
// ignore read only stuff
continue
}
2024-02-12 07:47:00 -06:00
2024-12-17 07:09:22 -06:00
log.Info("STARTING 'make install' in", check.GetGoPath())
2024-12-14 22:15:13 -06:00
if err := forge.Install(check, nil); err != nil {
2024-12-17 07:09:22 -06:00
log.Warn("INSTALL FAILED", check.GetGoPath(), err)
2024-12-14 22:15:13 -06:00
}
}
2024-02-12 07:47:00 -06:00
}