summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
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)
}