diff options
| author | Jeff Carr <[email protected]> | 2025-10-27 15:20:46 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-27 15:20:46 -0500 | 
| commit | 16ec641ec1dcc2192374ef2e3f76f192f64d329d (patch) | |
| tree | 0d77bbda84da4befb19145bf8545387f86e585b7 | |
| parent | 368d9060cb9edc5485b007a2ca247fb822564049 (diff) | |
kinda maybe makes the curpatches.pbv0.25.102
| -rw-r--r-- | doPatch.go | 12 | 
1 files changed, 3 insertions, 9 deletions
@@ -13,6 +13,7 @@ import (  	"regexp"  	"strings" +	"go.wit.com/lib/config"  	"go.wit.com/lib/env"  	"go.wit.com/lib/fhelp"  	"go.wit.com/lib/protobuf/forgepb" @@ -42,16 +43,9 @@ func doPatch() (string, error) {  	if me.curpatches.Filename == "" {  		panic("config failed. no 'curpatches' set in ~/.config/forge/config.text")  	} -	if err := me.curpatches.Load(); err != nil { -		me.curpatches.Save() -		me.curpatches.Save() -		log.Info(err) +	if err := config.LoadCacheDir(me.curpatches); err != nil { +		log.Info("tried to load curpatches from:", me.curpatches.Filename)  		panic("no file") -		// return -		// // THIS IS NEEDED? NOTSURE -		me.curpatches = forgepb.NewPatches() -		me.curpatches.Filename = env.Get("curpatches") -		me.curpatches.Save()  	}  	// just show the table and exit  | 
