Skip to content

Commit 19ad737

Browse files
maxproskendeloof
authored andcommitted
Fix runtime ops with missing env file
Signed-off-by: Max Proske <[email protected]>
1 parent d3a260e commit 19ad737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/compose/compose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func (o *ProjectOptions) projectOrName(ctx context.Context, dockerCli command.Cl
245245
name := o.ProjectName
246246
var project *types.Project
247247
if len(o.ConfigPaths) > 0 || o.ProjectName == "" {
248-
p, _, err := o.ToProject(ctx, dockerCli, services, cli.WithDiscardEnvFile)
248+
p, _, err := o.ToProject(ctx, dockerCli, services, cli.WithDiscardEnvFile, cli.WithoutEnvironmentResolution)
249249
if err != nil {
250250
envProjectName := os.Getenv(ComposeProjectName)
251251
if envProjectName != "" {

0 commit comments

Comments
 (0)