From 8525ac44ed846a756ca014a7fcdbf83fe53a1fb9 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Mon, 22 Feb 2021 08:27:55 +0100 Subject: [PATCH] os ENV has precedence over env file Signed-off-by: Nicolas De Loof --- cli/cmd/compose/compose.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cmd/compose/compose.go b/cli/cmd/compose/compose.go index d3f3f70f1..147904b1e 100644 --- a/cli/cmd/compose/compose.go +++ b/cli/cmd/compose/compose.go @@ -83,9 +83,9 @@ func (o *projectOptions) toProject(services []string) (*types.Project, error) { func (o *projectOptions) toProjectOptions() (*cli.ProjectOptions, error) { return cli.NewProjectOptions(o.ConfigPaths, - cli.WithOsEnv, cli.WithEnvFile(o.EnvFile), cli.WithDotEnv, + cli.WithOsEnv, cli.WithWorkingDirectory(o.WorkingDir), cli.WithName(o.ProjectName)) }