Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

[BUG] Plugin install fails with error: "karuppiah7890/helm-schema-gen crit platform windows/amd64 is not supported" #5

Closed
dmusicant-dk opened this issue Dec 22, 2020 · 10 comments
Assignees

Comments

@dmusicant-dk
Copy link

When I attempt to install the plugin (using GitBash) it fails and says it doesn't work on Windows.

Command Run:
helm plugin install https://github.com/karuppiah7890/helm-schema-gen

Error:

karuppiah7890/helm-schema-gen crit platform windows/amd64 is not supported.  Make sure this script is up-to-date and file request at https://github.com/karuppiah7890/helm-schema-gen/issues/new
Error: plugin install hook for "schema-gen" exited with error
@karuppiah7890
Copy link
Owner

Oops. Let me check this out

@karuppiah7890
Copy link
Owner

Actually, I just realized that the releases page does not have any binary for windows, even though I have mentioned it in goreleaser spec

@karuppiah7890
Copy link
Owner

Also, the install script also errors out for windows

@dmusicant-dk
Copy link
Author

Also, the install script also errors out for windows

Sorry, I'm confused. Isn't that what my bug is about? or did you mean install script for something this plugin uses?

@karuppiah7890
Copy link
Owner

Yes, that's what the error is about. It's more like a clear simple error rather than any hard to debug thing 😅 It's the install script of this plugin only.

I just found out that goreleaser does not build for windows by default. At least that's what the latest doc says. I'm going to make the change for releasing for windows too and then release a new version. I should have checked the releases page

@karuppiah7890
Copy link
Owner

@dmusicant-dk Could you please try again? I have released a newer version for the plugin

@dmusicant-dk
Copy link
Author

When I run helm plugin install https://github.com/karuppiah7890/helm-schema-gen --debug I now get the error:

[debug] vcs_installer.go:162: updating https://github.com/karuppiah7890/helm-schema-gen
Error: Unable to update repository: exit status 1
helm.go:81: [debug] Unable to update repository: exit status 1

@dmusicant-dk
Copy link
Author

Ok, I figured out the issue. Your README says to use helm plugin install https://github.com/karuppiah7890/helm-schema-gen but that fails. When I instead use helm plugin install https://github.com/karuppiah7890/helm-schema-gen.git it installs without error (notice the ".git").

And now it works! Thank you

@karuppiah7890
Copy link
Owner

Ah. Interesting, I'll check it out and then close the issue

@karuppiah7890
Copy link
Owner

Created another issue for the README instruction :) Thanks for reporting it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants