Skip to content

Commit

Permalink
feat: switch to env/v8
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed May 12, 2023
1 parent fbe09a9 commit cc951e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
)

require (
github.com/caarlos0/env/v7 v7.1.0
github.com/caarlos0/env/v8 v8.0.0
github.com/charmbracelet/keygen v0.4.2
github.com/charmbracelet/log v0.2.1
github.com/charmbracelet/ssh v0.0.0-20221117183211-483d43d97103
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd3
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
github.com/caarlos0/env/v7 v7.1.0 h1:9lzTF5amyQeWHZzuZeKlCb5FWSUxpG1js43mhbY8ozg=
github.com/caarlos0/env/v7 v7.1.0/go.mod h1:LPPWniDUq4JaO6Q41vtlyikhMknqymCLBw0eX4dcH1E=
github.com/caarlos0/env/v8 v8.0.0 h1:POhxHhSpuxrLMIdvTGARuZqR4Jjm8AYmoi/JKlcScs0=
github.com/caarlos0/env/v8 v8.0.0/go.mod h1:7K4wMY9bH0esiXSSHlfHLX5xKGQMnkH5Fk4TDSSSzfo=
github.com/caarlos0/sshmarshal v0.1.0 h1:zTCZrDORFfWh526Tsb7vCm3+Yg/SfW/Ub8aQDeosk0I=
github.com/caarlos0/sshmarshal v0.1.0/go.mod h1:7Pd/0mmq9x/JCzKauogNjSQEhivBclCQHfr9dlpDIyA=
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
Expand Down
4 changes: 2 additions & 2 deletions server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"github.com/caarlos0/env/v7"
"github.com/caarlos0/env/v8"
"github.com/charmbracelet/log"
"github.com/charmbracelet/soft-serve/server/backend"
"golang.org/x/crypto/ssh"
Expand Down Expand Up @@ -158,7 +158,7 @@ func parseConfig(path string) (*Config, error) {
initialAdminKeys := append([]string{}, cfg.InitialAdminKeys...)

// Override with environment variables
if err := env.Parse(cfg, env.Options{
if err := env.ParseWithOptions(cfg, env.Options{
Prefix: "SOFT_SERVE_",
}); err != nil {
return cfg, fmt.Errorf("parse environment variables: %w", err)
Expand Down

0 comments on commit cc951e3

Please sign in to comment.