Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve manifest list error message with help links #2409

Merged
merged 2 commits into from
Apr 16, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,12 @@ private ManifestAndDigest<?> obtainPlatformSpecificImageManifest(
List<String> digests = manifestListTemplate.getDigestsForPlatform("amd64", "linux");
if (digests.size() == 0) {
String errorMessage =
"Unable to find amd64/linux manifest in manifest list at: "
+ buildContext.getBaseImageConfiguration().getImage();
buildContext.getBaseImageConfiguration().getImage()
+ " is a manifest list, but the list does not contain an image manifest for amd64/linux."
+ " If your intention was to use a non-amd64/linux base image,"
+ " see https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#how-do-i-specify-a-platform-in-the-manifest-list-or-oci-index-of-a-base-image"
loosebazooka marked this conversation as resolved.
Show resolved Hide resolved
+ " to learn how to specify a manifest instead of a manifest list, until Jib fixes"
+ " https://github.com/GoogleContainerTools/jib/issues/1567 to allow specifying architecture and OS.";
buildContext.getEventHandlers().dispatch(LogEvent.error(errorMessage));
throw new RegistryException(errorMessage);
}
Expand Down