diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 07:02:45 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 07:02:45 -0600 |
| commit | d3f8613bd8943b0fcfb324a1f01d928fd1ef7fcf (patch) | |
| tree | ee95fbf9f04e609afc1ad8df7d93163afd39004f /main.go | |
| parent | e8de69e5a9fe98b5b234dbc345378c987040e46c (diff) | |
fixes for new gitpbv0.7.4
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) } } |
