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

Windows installation throws error when it tries to run post install hook #55

Closed
rgembalik opened this issue May 30, 2018 · 18 comments
Closed
Labels

Comments

@rgembalik
Copy link

On windows, when I try to install the plugin it tries to run .sh file (I presume from hooks.install), which throws an error (since windows doesn't natively run sh files, nor there is an install-binary.sh in the release tgz). When I manually download the release and paste it into .helm/plugins, then it looks for .helm\\plugins\\diff/bin/diff which is incorrect since the tgz file contains exe in the main directory.

It all runs well if I download tgz release, paste it manually, create bin folder for it, and throw .exe file in the bin folder.

@rgembalik rgembalik changed the title Windows installation throws error Windows installation throws error when it tries to run post install hook May 30, 2018
@Tzrlk
Copy link

Tzrlk commented Apr 5, 2019

I get a different error during the post-install:

helm plugin install https://github.com/databus23/helm-diff
No prebuild binary for windows-386.
Failed to install helm-diff
\tFor support, go to https://github.com/databus23/helm-diff.
Error: plugin install hook for "diff" exited with error

(yes, the "\t" appears to have been escaped before printing)

Predictably followed by this when I go to run helm diff help:

helm diff help
Error: exec: "C:\\Users\\tzrlk\\.helm\\plugins\\helm-diff/bin/diff": file does not exist

@stale
Copy link

stale bot commented Nov 8, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 8, 2019
@cilerler
Copy link

cilerler commented Nov 8, 2019

go away stale bot

@stale stale bot removed the stale label Nov 8, 2019
@stale
Copy link

stale bot commented Feb 6, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 6, 2020
@cilerler
Copy link

cilerler commented Feb 6, 2020

go away stale bot

@stale stale bot removed the stale label Feb 6, 2020
@eshepelyuk
Copy link

The issue stil exists

C:\Users\Evgeny>helm plugin install https://github.com/databus23/helm-diff --version master
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Error: plugin install hook for "diff" exited with error

@stale
Copy link

stale bot commented May 18, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 18, 2020
@cilerler
Copy link

go away stale bot

@stale stale bot removed the stale label May 18, 2020
@stale
Copy link

stale bot commented Aug 16, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 16, 2020
@cilerler
Copy link

go away stale bot

@stale stale bot removed the stale label Aug 16, 2020
@mumoshu
Copy link
Collaborator

mumoshu commented Aug 16, 2020

Hey! Honestly I don't know how I can test this myself because I don't own a windows pc.

But anyway, @Tzrlk's issue and @rgembalik's second issue seems to be caused by this line https://github.com/databus23/helm-diff/blob/master/plugin.yaml#L8 as @rgembalik has described. If we changed it to command: "$HELM_PLUGIN_DIR\bin\diff" it would indeed work for Windows, but not on *nix.

I'm now wondering how helm itself is supposed to support plugins on Windows? 🤔

@mumoshu
Copy link
Collaborator

mumoshu commented Aug 16, 2020

So the community direction seems like we should instruct users to use it on WSL.

helm/helm-2to3#118

@mumoshu
Copy link
Collaborator

mumoshu commented Aug 16, 2020

The upstream issue to add support for plugin installation on Windows is helm/helm#7117

@Tzrlk
Copy link

Tzrlk commented Aug 16, 2020 via email

@stale
Copy link

stale bot commented Nov 15, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 15, 2020
@cilerler
Copy link

go away stale bot

@stale stale bot removed the stale label Nov 15, 2020
@stale
Copy link

stale bot commented Feb 13, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 13, 2021
@stale stale bot closed this as completed Mar 16, 2021
@agastyasilvina
Copy link

go away stale

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

No branches or pull requests

6 participants