Skip to content

Commit

Permalink
fix(config): prio env over yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
invis-bitfly committed Jan 8, 2025
1 parent f0259aa commit f156019
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/pkg/commons/utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ func readConfigFile(cfg *types.Config, path string) error {
}

func readConfigEnv(cfg *types.Config) error {
return envconfig.Process(context.Background(), cfg)
return envconfig.ProcessWith(context.Background(), &envconfig.Config{
Target: cfg,

Check failure on line 48 in backend/pkg/commons/utils/config.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
DefaultOverwrite: true,
})
}

func readConfigSecrets(cfg *types.Config) error {
Expand Down

0 comments on commit f156019

Please sign in to comment.