-
Notifications
You must be signed in to change notification settings - Fork 407
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
ko apply doesn't error out when import path is incorrect #10
Comments
What do you mean by "exist in my image registry"? Most of the time I would think those images don't exist in your registry until you run |
It sounds like the issue is that if my YAML includes something like: image: gihtub.com/user/repo/cmd/foo # <-- typo! Then @dprotaso is that an accurate rephrasing of the issue? |
Correct
…On Wed, 30 May 2018 at 22:28 Jason Hall ***@***.***> wrote:
It sounds like the issue is that if my YAML includes something like:
image: gihtub.com/user/repo/cmd/foo # <-- typo!
Then ko resolve will not build an image for that incorrect importpath,
and instead will pass it through to the resolved output, where the image
will fail to be pulled, because it doesn't exist.
@dprotaso <https://github.com/dprotaso> is that an accurate rephrasing of
the issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/google/go-containerregistry/issues/180#issuecomment-393381649>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABIgtyG7Vt9DvtMfo11UztY3_O-482Qks5t31VJgaJpZM4UTUxI>
.
|
tl;dr I'm certainly open to suggestions, but I'm unsure of how to robustly handle this. There is certainly an angle here where we could introduce schema-sensitivity and special cases certain common patterns (e.g. One interesting case would be: what if I'm using My guiding principle with Does that make sense? WDYT? |
This would complicate things, but we could log a warning if the edit distance of an We could also just do: If you're using a pre-published image, no harm in logging that. If you expect ko to publish everything, you might see that? Maybe even a I went back and forth with dgageot on something similar... maybe we could adopt skaffold's strategy? Anything with an explicit tag/digest is expected to be skipped, but importpaths would not have those, so we could error on any reference with an implicit identifier that isn't |
Fixed by #58 |
There are a few things that could cause this:
|
Thanks a tonne @imjasonh this issue is now resolved I have checked this into a new repository - https://github.com/vickynarang01/go-ko |
I mistyped a package name when specifying my container image. This caused
ko
to apply a yaml configuration with an non-existent image.It would be nice if
ko
checked if the images I'm applying exist in my image registry and error out if they do not.The text was updated successfully, but these errors were encountered: