summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-24 18:31:13 -0500
committerJeff Carr <[email protected]>2025-10-24 18:31:13 -0500
commite1e8951cc3cad6db900ac1240512902936c4f97a (patch)
treef52ad248823da2b9cffd0a7eecef85690dd7d830 /config.go
parent40151b542eaaa78fa46a7ca65059fe43d01c00f1 (diff)
s/ENV/env/ but ENV really is better herev0.0.67
Diffstat (limited to 'config.go')
-rw-r--r--config.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.go b/config.go
index 7a7f119..cbb96ac 100644
--- a/config.go
+++ b/config.go
@@ -8,8 +8,8 @@ import (
"os"
"path/filepath"
- "go.wit.com/lib/ENV"
"go.wit.com/lib/config"
+ "go.wit.com/lib/env"
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/log"
)
@@ -28,8 +28,8 @@ func configInit() *forgepb.ForgeConfigs {
configs.Filename = config.MakeConfigFilename("forged", "forge")
err := config.ReLoad(configs)
if errors.Is(err, os.ErrNotExist) {
- ENV.Set("ReposDir", "/var/cache/forged")
- ENV.Set("ReposPB", filepath.Join(ENV.Get("ReposDir"), "repos.pb"))
+ env.Set("ReposDir", "/var/cache/forged")
+ env.Set("ReposPB", filepath.Join(env.Get("ReposDir"), "repos.pb"))
if err := configSave(); err != nil {
badExit(err)
}