summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-28 18:56:47 -0500
committerJeff Carr <[email protected]>2025-08-28 19:30:59 -0500
commitc4146f9fbe96332ede413f8ba3f3546f8346dfc0 (patch)
tree33efbbb851af19d842bba8ae774c2b3642a24571 /init.go
parent0539e2feee23adc0be8a88e1c6dc214cc7d98de5 (diff)
read in patches in Init()
Diffstat (limited to 'init.go')
-rw-r--r--init.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.go b/init.go
index 1470af5..a736bcf 100644
--- a/init.go
+++ b/init.go
@@ -238,6 +238,12 @@ func RawInitPB() *Forge {
log.Info("got forge url", f.forgeURL)
}
+ // where patches are stored
+ f.patchDir = f.goSrc
+ if os.Getenv("FORGE_PATCHDIR") != "" {
+ f.patchDir = os.Getenv("FORGE_PATCHDIR")
+ }
+
// todo: play with these / determine good values based on user's machine
f.rillX = 10
f.rillY = 20