From 1bef41fd6fe7cdac1b9dc1a10037cd12d6e6a603 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 14 Oct 2025 04:10:41 -0500 Subject: try out lib/config for a setting --- doPatch.go | 8 ++++++-- 1 file 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() } -- cgit v1.2.3