Skip to content

Commit 06a0d8f

Browse files
committed
resolve variables in .env file based on previously set variables
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 771cf87 commit 06a0d8f

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)