summaryrefslogtreecommitdiff
path: root/update.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-20 13:56:27 -0600
committerJeff Carr <[email protected]>2024-11-20 13:56:27 -0600
commitf1c2695662ea01e05271505e7d5c49f8590b7ff7 (patch)
treebf66c1f9616adbf57ec746d5971e648100ae4b76 /update.go
parent09f855910c9c5ebf146bd6ff1b00e911f7b850d5 (diff)
still protobuf memory corruption
Diffstat (limited to 'update.go')
-rw-r--r--update.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/update.go b/update.go
new file mode 100644
index 0000000..2ad64cf
--- /dev/null
+++ b/update.go
@@ -0,0 +1,11 @@
+package forgepb
+
+import (
+ "os"
+)
+
+func (repos *Repos) UpdateGoPath(r *Repo, gopath string) {
+ r.Gopath = gopath
+ repos.ConfigSave()
+ os.Exit(0)
+}