Преглед на файлове

debug message to help diagnose platform mismatch

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof преди 7 месеца
родител
ревизия
61e44da936
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      pkg/compose/build.go

+ 1 - 0
pkg/compose/build.go

@@ -368,6 +368,7 @@ func (s *composeService) getLocalImagesDigests(ctx context.Context, project *typ
 				Variant:      inspect.Variant,
 				Variant:      inspect.Variant,
 			}
 			}
 			if !platforms.NewMatcher(platform).Match(actual) {
 			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
 				// 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
 				// pretend it doesn't exist so that we can pull/build an image
 				// for the correct platform instead
 				// for the correct platform instead