summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 10:02:48 -0500
committerJeff Carr <[email protected]>2025-10-03 10:02:48 -0500
commit65fcf74c9a47cadc755f1965daee198031415c89 (patch)
tree40822e0a259e071a2155f72dfd9d0f49373ca712 /main.go
parentca419f8db029fe494d27e2d531a85436db05d665 (diff)
fix non-recursive clone
Diffstat (limited to 'main.go')
-rw-r--r--main.go59
1 files changed, 30 insertions, 29 deletions
diff --git a/main.go b/main.go
index 69c0952..ed50a20 100644
--- a/main.go
+++ b/main.go
@@ -31,42 +31,43 @@ func main() {
if err != nil {
badExit(err)
}
-
- if !argv.NonRecursive {
- log.Info("STARTING RECURSIVE CLONE", workingRepo.GetGoPath())
- if err := recursiveClone(workingRepo); err != nil {
- badExit(err)
+ if argv.NonRecursive {
+ if argv.AutoWork {
+ autoWork()
}
- }
- autoWork()
- if argv.Build {
- log.Info("STARTING BUILD", workingRepo.GetGoPath())
- /*
- if err := makeValidGoSum(workingRepo); err != nil {
- badExit(err)
+ if argv.Build {
+ log.Info("STARTING BUILD", workingRepo.GetGoPath())
+ /*
+ if err := makeValidGoSum(workingRepo); err != nil {
+ badExit(err)
+ }
+ if err := build(); err != nil {
+ badExit(err)
+ }
+ */
+ if workingRepo.GetRepoType() == "binary" || workingRepo.GetRepoType() == "plugin" {
+ log.Info("build will probably fail", workingRepo.GetGoPath(), "is", workingRepo.GetRepoType())
}
- if err := build(); err != nil {
+ if err := forge.Build(workingRepo, nil); err != nil {
+ log.Warn("BUILD FAILED", workingRepo.GetGoPath(), err)
badExit(err)
}
- */
- 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.GetGoPath(), err)
- badExit(err)
+ if argv.Install {
+ log.Info("STARTING INSTALL", workingRepo.GetGoPath())
+ // can only install binary or plugin go packages
+ 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.GetGoPath(), err)
+ badExit(err)
+ }
}
}
- if argv.Install {
- log.Info("STARTING INSTALL", workingRepo.GetGoPath())
- // can only install binary or plugin go packages
- 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.GetGoPath(), err)
- badExit(err)
- }
+ log.Info("STARTING RECURSIVE CLONE", workingRepo.GetGoPath())
+ if err := recursiveClone(workingRepo); err != nil {
+ badExit(err)
}
okExit("")
}