blob: 68dda6212cdd3f31f8bae18c63aca3c033b2a1dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package main
import (
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/log"
)
// go will sit here until the window exits
func main() {
// read in forge info
cfg := configInit()
forge := forgepb.InitFromConfig(cfg)
all := forge.Repos.SortByFullPath()
for all.Scan() {
check := all.Next()
repotype := check.GetRepoType()
if repotype != "plugin" {
continue
}
if forge.Config.IsReadOnly(check.GetGoPath()) {
// ignore read only stuff
continue
}
log.Info("STARTING 'make install' in", check.GetGoPath())
if err := forge.Install(check, nil); err != nil {
log.Warn("INSTALL FAILED", check.GetGoPath(), err)
}
}
}
|