diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -9,7 +9,7 @@ import ( "path/filepath" "time" - "go.wit.com/lib/ENV" + "go.wit.com/lib/env" "go.wit.com/lib/protobuf/argvpb" "go.wit.com/lib/protobuf/forgepb" "go.wit.com/lib/protobuf/gitpb" @@ -22,7 +22,7 @@ var resources embed.FS var HOSTNAME string = "forge.wit.com" func saveMissing() error { - err := me.missing.SaveValidate(filepath.Join(ENV.Get("ReposDir"), "missing.pb")) + err := me.missing.SaveValidate(filepath.Join(env.Get("ReposDir"), "missing.pb")) if err != nil { log.Info("failed to save missing.pb", err) } @@ -38,7 +38,7 @@ func main() { if err != nil { panic("forge.InitByFullPath() failed") } - ENV.PrintTable() + env.PrintTable() if err := me.forge.InitPatchsets(); err != nil { log.Info("patches failed to open", err) @@ -53,7 +53,7 @@ func main() { } me.missing = gitpb.NewRepos() - err = me.missing.ConfigLoad(filepath.Join(ENV.Get("ReposDir"), "missing.pb")) + err = me.missing.ConfigLoad(filepath.Join(env.Get("ReposDir"), "missing.pb")) if errors.Is(err, os.ErrNotExist) { saveMissing() } else if err != nil { |
