summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-30 23:43:24 -0600
committerJeff Carr <[email protected]>2025-01-31 13:47:45 -0600
commit8329c71b08617bbe0f0a908fff036cf16a5aeff9 (patch)
tree4d3f7c26597f27dd9288ae7662fa11906602536a
parentfb91818c5f31da0b0f9103a6ed6dd65fdc8c595e (diff)
save this in ~/.config/forge
-rw-r--r--doPatch.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/doPatch.go b/doPatch.go
index 59f1cf8..2947d1a 100644
--- a/doPatch.go
+++ b/doPatch.go
@@ -58,7 +58,7 @@ func savePatchsets(psets *forgepb.Patchsets) error {
log.Info("protobuf.Marshal() failed:", err)
return err
}
- fullpath := filepath.Join(me.forge.GetGoSrc(), "patchsets.pb")
+ fullpath := filepath.Join(me.forge.GetConfigDir(), "patchsets.pb")
var pfile *os.File
pfile, err = os.OpenFile(fullpath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
if err != nil {
@@ -71,7 +71,7 @@ func savePatchsets(psets *forgepb.Patchsets) error {
}
func openPatchsets() (*forgepb.Patchsets, error) {
- fullpath := filepath.Join(me.forge.GetGoSrc(), "patchsets.pb")
+ fullpath := filepath.Join(me.forge.GetConfigDir(), "patchsets.pb")
data, err := os.ReadFile(fullpath)
if err != nil {
log.Info("Patchsets open failed:", err, fullpath)