diff --git a/config/config.go b/config/config.go index a4be3e0..99e49b4 100644 --- a/config/config.go +++ b/config/config.go @@ -17,7 +17,10 @@ func NewConfig(ctx context.Context) (Config, error) { envconfig.OsLookuper(), ) - if err := envconfig.ProcessWith(ctx, &cfg, lookuper); err != nil { + if err := envconfig.ProcessWith(ctx, &envconfig.Config{ + Target: &cfg, + Lookuper: lookuper, + }); err != nil { return Config{}, fmt.Errorf("process env: %w", err) }