diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -42,14 +42,14 @@ func main() { badExit(err) } if argv.Recursive { - log.Info("STARTING RECURSIVE CLONE", workingRepo.GoPath) + log.Info("STARTING RECURSIVE CLONE", workingRepo.GetGoPath()) if err := recursiveClone(workingRepo); err != nil { badExit(err) } } autoWork() if argv.Build { - log.Info("STARTING BUILD", workingRepo.GoPath) + log.Info("STARTING BUILD", workingRepo.GetGoPath()) /* if err := makeValidGoSum(workingRepo); err != nil { badExit(err) @@ -58,22 +58,22 @@ func main() { badExit(err) } */ - if workingRepo.RepoType() == "binary" || workingRepo.RepoType() == "plugin" { - log.Info("build will probably fail", workingRepo.GoPath, "is", workingRepo.RepoType()) + if workingRepo.GetRepoType() == "binary" || workingRepo.GetRepoType() == "plugin" { + log.Info("build will probably fail", workingRepo.GetGoPath(), "is", workingRepo.GetRepoType()) } if err := forge.Build(workingRepo, nil); err != nil { - log.Warn("BUILD FAILED", workingRepo.GoPath, err) + log.Warn("BUILD FAILED", workingRepo.GetGoPath(), err) badExit(err) } } if argv.Install { - log.Info("STARTING INSTALL", workingRepo.GoPath) + log.Info("STARTING INSTALL", workingRepo.GetGoPath()) // can only install binary or plugin go packages - if workingRepo.RepoType() == "binary" || workingRepo.RepoType() == "plugin" { - log.Info("install will probably fail", workingRepo.GoPath, "is", workingRepo.RepoType()) + if workingRepo.GetRepoType() == "binary" || workingRepo.GetRepoType() == "plugin" { + log.Info("install will probably fail", workingRepo.GetGoPath(), "is", workingRepo.GetRepoType()) } if err := forge.Install(workingRepo, nil); err != nil { - log.Warn("INSTALL FAILED", workingRepo.GoPath, err) + log.Warn("INSTALL FAILED", workingRepo.GetGoPath(), err) badExit(err) } } |
