From 61e44da9369f96df34f59dcad110351407e126fb Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Wed, 4 Jun 2025 15:01:08 +0200 Subject: [PATCH] debug message to help diagnose platform mismatch Signed-off-by: Nicolas De Loof --- pkg/compose/build.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/compose/build.go b/pkg/compose/build.go index 4666bacb0..974adf670 100644 --- a/pkg/compose/build.go +++ b/pkg/compose/build.go @@ -368,6 +368,7 @@ func (s *composeService) getLocalImagesDigests(ctx context.Context, project *typ Variant: inspect.Variant, } if !platforms.NewMatcher(platform).Match(actual) { + logrus.Debugf("local image %s doesn't match expected platform %s", service.Image, service.Platform) // there is a local image, but it's for the wrong platform, so // pretend it doesn't exist so that we can pull/build an image // for the correct platform instead