Skip to content

Commit

Permalink
Return precedence to OS Env over Env Files
Browse files Browse the repository at this point in the history
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
  • Loading branch information
ulyssessouza committed Aug 17, 2022
1 parent 5135b47 commit f52c600
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/options.go
Expand Up @@ -198,6 +198,9 @@ func WithDotEnv(o *ProjectOptions) error {
}
for k, v := range envMap {
o.Environment[k] = v
if osVal, ok := os.LookupEnv(k); ok {
o.Environment[k] = osVal
}
}
return nil
}
Expand Down

0 comments on commit f52c600

Please sign in to comment.