From e4fb5545f02e859b4de8031d927204973d84e67c Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Thu, 14 Dec 2023 11:08:15 +0100 Subject: [PATCH] build do not require environment to be reslved Signed-off-by: Nicolas De Loof --- cmd/compose/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/compose/build.go b/cmd/compose/build.go index 76c7fc814..31424596b 100644 --- a/cmd/compose/build.go +++ b/cmd/compose/build.go @@ -131,7 +131,7 @@ func buildCommand(p *ProjectOptions, dockerCli command.Cli, backend api.Service) } func runBuild(ctx context.Context, dockerCli command.Cli, backend api.Service, opts buildOptions, services []string) error { - project, err := opts.ToProject(dockerCli, services, cli.WithResolvedPaths(true)) + project, err := opts.ToProject(dockerCli, services, cli.WithResolvedPaths(true), cli.WithoutEnvironmentResolution) if err != nil { return err }