Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

After downloading the .tgz release files, helm plugin install is failing #504

Open
alireza-mht opened this issue Oct 27, 2023 · 7 comments

Comments

@alireza-mht
Copy link

alireza-mht commented Oct 27, 2023

I am downloading helm-diff-linux-amd64.tgz file from release page. After untaring it using tar -xzvf ./helm-diff-linux-amd64.tgz , the command helm plugin install ./diff return the below error:

sh: 1: /home/alireza/.local/share/helm/plugins/diff/install-binary.sh: not found
Error: plugin install hook for "diff" exited with error

It seems that install-binary.sh file is missing.

plugin version: v3.8.1
helm version: v3.12.1

@mjtrangoni
Copy link
Contributor

mjtrangoni commented Nov 3, 2023

This issue is still open, #260 for a workaround. @databus23 @mumoshu any plans to permanently repair it?

@yxxhero
Copy link
Collaborator

yxxhero commented May 24, 2024

maybe this had beed fixed.

@nikaro
Copy link

nikaro commented Jan 31, 2025

Edit: this is just my dumb corporate AV (Acronis CyberProtect) that think it is doing shady things...

I'm still having this is issue:

> helm plugin install --debug https://github.com/databus23/helm-diff
[debug] vcs_installer.go:162: updating https://github.com/databus23/helm-diff
[debug] vcs_installer.go:91: copying /Users/nicolas/Library/Caches/helm/plugins/https-github.heygears.com-databus23-helm-diff to /Users/nicolas/Library/helm/plugins/helm-diff
plugin_install.go:82: 2025-01-31 15:49:41.069209 +0100 CET m=+1.310241503 [debug] loading plugin from /Users/nicolas/Library/helm/plugins/helm-diff
plugin.go:60: 2025-01-31 15:49:41.06954 +0100 CET m=+1.310573152 [debug] running install hook: /bin/sh -c $HELM_PLUGIN_DIR/install-binary.sh
Downloading https://github.com/databus23/helm-diff/releases/latest/download/helm-diff-macos-amd64.tgz
Error: plugin install hook for "diff" exited with error
helm.go:86: 2025-01-31 15:49:41.685064 +0100 CET m=+1.926078730 [debug] plugin install hook for "diff" exited with error
main.runHook
        helm.sh/helm/v3/cmd/helm/plugin.go:67
main.(*pluginInstallOptions).run
        helm.sh/helm/v3/cmd/helm/plugin_install.go:88
main.newPluginInstallCmd.func3
        helm.sh/helm/v3/cmd/helm/plugin_install.go:59
github.com/spf13/cobra.(*Command).execute
        github.com/spf13/cobra@v1.8.1/command.go:985
github.com/spf13/cobra.(*Command).ExecuteC
        github.com/spf13/cobra@v1.8.1/command.go:1117
github.com/spf13/cobra.(*Command).Execute
        github.com/spf13/cobra@v1.8.1/command.go:1041
main.main
        helm.sh/helm/v3/cmd/helm/helm.go:85
runtime.main
        runtime/proc.go:272
runtime.goexit
        runtime/asm_amd64.s:1700

@mbyio
Copy link

mbyio commented Mar 4, 2025

Hi @yxxhero, I think this is indeed still an issue. I encountered it today with v3.10.0. I think the problem is just that the install-binary.sh script is not bundled in the .tgz file for some reason.

By the way, the reason I encountered the issue is I want to verify the checksum of the download before installing.

@yxxhero
Copy link
Collaborator

yxxhero commented Mar 4, 2025

@mbyio could you post some logs?

@mbyio
Copy link

mbyio commented Mar 4, 2025

If you run curl -L -o helm-diff.tgz https://github.com/databus23/helm-diff/releases/download/v3.10.0/helm-diff-linux-amd64.tgz and then tar xvf helm-diff.tgz it will extract the release into a directory called diff. The directory does not contain a install-binary.sh script. If you open diff/plugin.yaml, it defines an install hook that calls install-binary.sh. When you try to install using helm plugin install, it tries to run install-binary.sh and fails.

@yxxhero
Copy link
Collaborator

yxxhero commented Mar 4, 2025

@mbyio got it.

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

No branches or pull requests

5 participants