Skip to content

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

Closed

Description

@alireza-mht

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

Activity

  1. mjtrangoni commented on Nov 3, 2023

    @mjtrangoni
    Contributor

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

  2. yxxhero commented on May 24, 2024

    @yxxhero
    Collaborator

    maybe this had beed fixed.

  3. nikaro commented on Jan 31, 2025

    @nikaro

    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.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/[email protected]/command.go:985
    github.com/spf13/cobra.(*Command).ExecuteC
            github.com/spf13/[email protected]/command.go:1117
    github.com/spf13/cobra.(*Command).Execute
            github.com/spf13/[email protected]/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
    
  4. mbyio commented on Mar 4, 2025

    @mbyio

    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.

  5. yxxhero commented on Mar 4, 2025

    @yxxhero
    Collaborator

    @mbyio could you post some logs?

  6. mbyio commented on Mar 4, 2025

    @mbyio

    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.

  7. yxxhero commented on Mar 4, 2025

    @yxxhero
    Collaborator

    @mbyio got it.

  8. added a commit that references this issue on Jul 9, 2025
    834f6e6
  9. Raboo commented on Jan 14, 2026

    @Raboo

    This issue has been known since end of 2023. PR was created mid 2025. Yet early 2026 there has been no progress. Sucks when it is like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions