lifecycle icon indicating copy to clipboard operation
lifecycle copied to clipboard

Misleading error message when the run-image is not readable

Open ekcasey opened this issue 5 years ago • 1 comments

Summary

When the lifecycle does not have the credentials needed to pull the run-image it prints a misleading error message claiming that the as-yet-to-be-created app-image has no layers:

failed to export: get run image top layer SHA: image <app-image-tag> has no layers

Reproduction

Steps
  1. Push a <run-image> to a private registry
  2. pack build with the --run-image <run-image> flag pointing to the private run image.
  3. Observe the misleading error message.
Current behavior

Error message looks like:

failed to export: get run image top layer SHA: image <app-image-tag> has no layers
Expected

Something useful like:

failed to export: unable to read run-image '<run-image>': unauthorized

Context

lifecycle version

0.9.1

Warning This will likely require some (overdue) redesign of the imgutil library interface.

ekcasey avatar Oct 12 '20 23:10 ekcasey

Blocking this on imgutil refactor

natalieparellano avatar Feb 25 '22 20:02 natalieparellano