helm-diff: Windows installation throws error when it tries to run post install hook

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.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 11
  • Comments: 18

Most upvoted comments

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.

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.

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