summaryrefslogtreecommitdiff
path: root/doInstall.go
diff options
context:
space:
mode:
Diffstat (limited to 'doInstall.go')
-rw-r--r--doInstall.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/doInstall.go b/doInstall.go
index 5b593f0..42adc99 100644
--- a/doInstall.go
+++ b/doInstall.go
@@ -9,6 +9,7 @@ import (
"os"
"path/filepath"
+ "go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
)
@@ -145,3 +146,34 @@ func doInstall() error {
}
return nil
}
+
+func doInstallRepo(check *gitpb.Repo) error {
+ repotype := check.GetRepoType()
+ if repotype == "binary" || repotype == "plugin" {
+ // we only want to process things that can be compiled with 'go build'
+ } else {
+ // log.Info("skipping repo", check.GetGoPath(), repotype)
+ return nil
+ }
+
+ if me.forge.Config.IsReadOnly(check.GetGoPath()) {
+ // ignore read only stuff
+ return nil
+ }
+
+ if argv.Verbose {
+ verbose := []string{"-v", "-x"}
+ if err := me.forge.Install(check, verbose); err != nil {
+ log.Warn("INSTALL FAILED", check.GetGoPath(), err)
+ failed[check] = fmt.Sprintf("%s %s %v", "go install", check.GetGoPath(), err)
+ return err
+ }
+ } else {
+ if err := me.forge.Install(check, nil); err != nil {
+ log.Warn("INSTALL FAILED", check.GetGoPath(), err)
+ failed[check] = fmt.Sprintf("%s %s %v", "go install", check.GetGoPath(), err)
+ return err
+ }
+ }
+ return nil
+}