From daa6bec80af7314cfab24e7b1ebf8b5f28086c6c Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Mon, 22 May 2023 19:14:57 +0200 Subject: [PATCH] fix support for project name set by COMPOSE_PROJECT_NAME env var Signed-off-by: Nicolas De Loof --- cmd/compose/compose.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/compose/compose.go b/cmd/compose/compose.go index cb6617f21..680790d2f 100644 --- a/cmd/compose/compose.go +++ b/cmd/compose/compose.go @@ -175,7 +175,7 @@ func (o *ProjectOptions) toProjectName() (string, error) { return o.ProjectName, nil } - envProjectName := os.Getenv("ComposeProjectName") + envProjectName := os.Getenv(ComposeProjectName) if envProjectName != "" { return envProjectName, nil }