From 944e5e67a1dc555c2738f1bd277ab136b25bcc4b Mon Sep 17 00:00:00 2001 From: Guillaume Lours <705411+glours@users.noreply.github.com> Date: Fri, 16 May 2025 17:36:32 +0200 Subject: [PATCH] do not throw an error on build with provider services Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com> --- pkg/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/api.go b/pkg/api/api.go index 0b159b22c..95ff19931 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -165,7 +165,7 @@ type BuildOptions struct { func (o BuildOptions) Apply(project *types.Project) error { platform := project.Environment["DOCKER_DEFAULT_PLATFORM"] for name, service := range project.Services { - if service.Image == "" && service.Build == nil { + if service.Provider == nil && service.Image == "" && service.Build == nil { return fmt.Errorf("invalid service %q. Must specify either image or build", name) }