You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@deiga you are right in that the plugin works with Helm 3. However, I did have to spend a couple of hours yesterday trying to install the plugin on a clean alpine docker image without git.
$ helm plugin install https://github.com/databus23/helm-diff
Error: git is not installed
There were a couple of problems. Firstly, a tarball from the release page could not be installed:
Apparently, it happens because the tarball has to have plugin.yaml at the root of the archive, and not in a subdir, but I didn't confirm that.
Next, if you unpack the tarball and try to install it from a directory, it fails, because plugin.yaml references a hook, install-binary.sh, hook, that is not included in the archive:
$ helm plugin install --debug .
[debug] local_installer.go:49: symlinking /home/immerrr/src/helm-diff/diff to /home/immerrr/.local/share/helm/plugins/diff
plugin_install.go:82: [debug] loading plugin from /home/immerrr/.local/share/helm/plugins/diff
plugin.go:61: [debug] running install hook: /bin/sh -c $HELM_PLUGIN_DIR/install-binary.sh
sh: 1: /home/immerrr/.local/share/helm/plugins/diff/install-binary.sh: not found
Error: plugin install hook for "diff" exited with error
helm.go:81: [debug] plugin install hook for "diff" exited with error
main.runHook
/home/circleci/helm.sh/helm/cmd/helm/plugin.go:68
main.(*pluginInstallOptions).run
/home/circleci/helm.sh/helm/cmd/helm/plugin_install.go:88
main.newPluginInstallCmd.func3
/home/circleci/helm.sh/helm/cmd/helm/plugin_install.go:59
github.com/spf13/cobra.(*Command).execute
/go/pkg/mod/github.com/spf13/[email protected]/command.go:842
github.com/spf13/cobra.(*Command).ExecuteC
/go/pkg/mod/github.com/spf13/[email protected]/command.go:950
github.com/spf13/cobra.(*Command).Execute
/go/pkg/mod/github.com/spf13/[email protected]/command.go:887
main.main
/home/circleci/helm.sh/helm/cmd/helm/helm.go:80
runtime.main
/usr/local/go/src/runtime/proc.go:203
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1373
The install hook is likely not packaged because the tarball already has the binary, but it is not reflected in plugin.yaml. So in the end my installation script looked something like this:
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.
Activity
deiga commentedon Feb 14, 2021
@Vaishnavi109 How does it fail? Can you provide output, logs, error message?
The plugin works perfectly fine with helm3, so it is most likely something on your end.
immerrr commentedon Feb 25, 2021
@deiga you are right in that the plugin works with Helm 3. However, I did have to spend a couple of hours yesterday trying to install the plugin on a clean alpine docker image without git.
There were a couple of problems. Firstly, a tarball from the release page could not be installed:
Apparently, it happens because the tarball has to have plugin.yaml at the root of the archive, and not in a subdir, but I didn't confirm that.
Next, if you unpack the tarball and try to install it from a directory, it fails, because
plugin.yamlreferences a hook,install-binary.sh, hook, that is not included in the archive:The install hook is likely not packaged because the tarball already has the binary, but it is not reflected in
plugin.yaml. So in the end my installation script looked something like this:stale commentedon Jun 2, 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.
ncasaux commentedon Nov 26, 2023
Having exact same problem when trying to install the plugin on a Debian OS machine without git installed.
Goffen commentedon Dec 12, 2025
Same here