From d3f8613bd8943b0fcfb324a1f01d928fd1ef7fcf Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 17 Dec 2024 07:02:45 -0600 Subject: fixes for new gitpb --- main.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index c31dbdb..d263e7f 100644 --- a/main.go +++ b/main.go @@ -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) } } -- cgit v1.2.3