summaryrefslogtreecommitdiff
path: root/doBuild.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-13 06:36:34 -0500
committerJeff Carr <[email protected]>2025-10-13 06:36:34 -0500
commit5ace0a45477ef0e3d06a94cfbbee7e623a7d56c7 (patch)
treef8ef4bfa7404115c4e86170a96cf62eaaefdb747 /doBuild.go
parente10076440f7824cef366369bcd3088adfe2090fc (diff)
try to only test install what is needed
Diffstat (limited to 'doBuild.go')
-rw-r--r--doBuild.go18
1 files changed, 11 insertions, 7 deletions
diff --git a/doBuild.go b/doBuild.go
index 2c8fe85..4e7bae6 100644
--- a/doBuild.go
+++ b/doBuild.go
@@ -14,8 +14,10 @@ import (
)
func doBuild() (string, error) {
+ initForge()
+
if argv.Build.Install != nil {
- if err := doInstall(); err != nil {
+ if err := doInstall(me.forge.Repos); err != nil {
// log.Info("doInstall() failed", err)
me.sh.BadExit("doInstall() failed", err)
}
@@ -27,22 +29,24 @@ func doBuild() (string, error) {
}
if argv.Build.Debian != nil {
- if err := doInstall(); err != nil {
+ // figure out what to build
+ found := findBuildDeb()
+
+ if err := doInstall(found); err != nil {
// log.Info("doInstall() failed", err)
me.sh.BadExit("doInstall() failed", err)
}
- return doBuildDeb()
+ return doBuildDeb(found)
}
return "todo: doBuild()", nil
}
-func doInstall() error {
- initForge()
- doInstallScan()
+func doInstall(all *gitpb.Repos) error {
+ // doInstallScan()
found := gitpb.NewRepos()
- for check := range me.forge.Repos.IterAll() {
+ for check := range all.IterAll() {
if me.forge.Config.IsReadOnly(check.Namespace) {
continue
}