summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-30 23:35:16 -0600
committerJeff Carr <[email protected]>2025-01-31 13:47:45 -0600
commitec4acd425c269c5adab54e41648f3c1304d04f63 (patch)
tree346d4c00d6eda15c86ed0f9b26a7a2aa22b24ceb /init.go
parent0614066fdb1547310e450d0649a82ffd68c18a21 (diff)
save the path to the config dirv0.0.69
Diffstat (limited to 'init.go')
-rw-r--r--init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.go b/init.go
index bab2d6d..731737a 100644
--- a/init.go
+++ b/init.go
@@ -93,6 +93,8 @@ func DetermineGoPath() *Forge {
os.Setenv("FORGE_CONFIG", fullpath)
}
+ f.configDir = os.Getenv("FORGE_CONFIG")
+
// check again for go.work // user could have a go.work file in ~/go/src
if f.goWorkExists() {
f.goWork = true