Skip to content

Commit 61e44da

Browse files
ndeloofglours
authored andcommitted
debug message to help diagnose platform mismatch
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent 0bf7d1e commit 61e44da

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/compose/build.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ func (s *composeService) getLocalImagesDigests(ctx context.Context, project *typ
368368
Variant: inspect.Variant,
369369
}
370370
if !platforms.NewMatcher(platform).Match(actual) {
371+
logrus.Debugf("local image %s doesn't match expected platform %s", service.Image, service.Platform)
371372
// there is a local image, but it's for the wrong platform, so
372373
// pretend it doesn't exist so that we can pull/build an image
373374
// for the correct platform instead

0 commit comments

Comments
 (0)