-
Notifications
You must be signed in to change notification settings - Fork 374
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
krew install fails to print error when no selector matches #344
Comments
Ok, here's the way easier way to reproduce:
|
Seems to be a major case unhandled. Thanks for the report. Mu guess is this is due to some recent refactoring we’ve done and zero-values. |
/kind bug |
Hey @verb, thanks for your thorough bug report. This made it very easy to find the bug. @ahmetb So this affects all users/plugins where there is no match in the platforms. Krew's behavior is not broken per se, but the success message is slightly awkward. Do you think we should create a bugfix release for this? |
Did that plugin somehow pass the validation with “Linux” spelling? Feel free to make a release, I think it’s not too critical. |
@ahmetb I didn't run any validation on the snippet I pasted. I was just following the developer guide locally. |
I was referring to the krew-manifest-validator that runs as part of krew-index CI tests. |
I ran into this while developing my first plugin. I glanced at the code and it appears that an error should be thrown, so I'm not sure why no errors were printed.
Here's what I did wrong. I used this manifest (notice the capitalization of
os: Linux
):Then I ran:
This printed the caveat and
Installed plugin
, but in fact no files were copied.The text was updated successfully, but these errors were encountered: