summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 04:10:41 -0500
committerJeff Carr <[email protected]>2025-10-14 04:10:41 -0500
commit1bef41fd6fe7cdac1b9dc1a10037cd12d6e6a603 (patch)
treea6762c4ec912849204590557df0397f7451181e3
parent8f83808f59ffc42b306f8d1ca367132ddf62cb2b (diff)
try out lib/config for a settingv0.25.85
-rw-r--r--doPatch.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/doPatch.go b/doPatch.go
index c895c8a..040d5be 100644
--- a/doPatch.go
+++ b/doPatch.go
@@ -13,6 +13,7 @@ import (
"regexp"
"strings"
+ "go.wit.com/lib/config"
"go.wit.com/lib/fhelp"
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/lib/protobuf/gitpb"
@@ -37,7 +38,10 @@ func isPatchingSafe() bool {
func doPatch() (string, error) {
// var changed bool
me.curpatches = forgepb.NewPatches()
- me.curpatches.Filename = "/tmp/curpatches.pb"
+ me.curpatches.Filename = config.Get("curpatches")
+ if me.curpatches.Filename == "" {
+ panic("config failed")
+ }
if err := me.curpatches.Load(); err != nil {
me.curpatches.Save()
me.curpatches.Save()
@@ -46,7 +50,7 @@ func doPatch() (string, error) {
// return
// // THIS IS NEEDED? NOTSURE
me.curpatches = forgepb.NewPatches()
- me.curpatches.Filename = "/tmp/curpatches.pb"
+ me.curpatches.Filename = config.Get("curpatches")
me.curpatches.Save()
}