Skip to content

Commit c9f323e

Browse files
authored
Merge pull request #262 from ndeloof/os_env
resolve variables in .env file based on previously set variables
2 parents da0609a + 06a0d8f commit c9f323e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func WithDotEnv(o *ProjectOptions) error {
222222

223223
notInEnvSet := make(map[string]interface{})
224224
env, err := dotenv.ParseWithLookup(file, func(k string) (string, bool) {
225-
v, ok := os.LookupEnv(k)
225+
v, ok := o.Environment[k]
226226
if !ok {
227227
notInEnvSet[k] = nil
228228
return "", true

0 commit comments

Comments
 (0)