Skip to content

plugin does not install if helm is helm 3 but run from helm 2 #244

Closed

Description

@schollii

The install-binary.sh script uses the helm home command which only exists in helm 3. Interestingly, if either helm 2 XOR helm 3 are installed on my system, the plugin installs fine. However if both versions of helm are on my system, and helm is actually helm 3, and helm 2 has some other name, then the plugin no longer installs for helm 2:

  • helm version shows helm 3
  • helm plugin install https://github.com/databus23/helm-diff works
  • helm2 version shows helm 2
  • helm2 plugin install https://github.com/databus23/helm-diff fails with error message that home is not a recognized command

At first unclear what this is about, but inspection of source code indicates the error happens because install-binary.sh calls helm home, which in the above scenario actually calls helm 3, which does not support home command (I'm guessing that helm 3's plugin install does not use that script otherwise it would fail too).

Is there a reason that $(helm home) cannot be replaced by $HELM_HOME?

Activity

  1. stale commented on Feb 2, 2021

    @stale

    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.

  2. schollii commented on Feb 2, 2021

    @schollii
    Author

    I'd like to keep this open. I'll submit a PR and see what happens.

  3. stale commented on Jun 2, 2021

    @stale

    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.

  4. schollii commented on Jun 2, 2021

    @schollii
    Author

    bump

  5. mumoshu commented on Jun 2, 2021

    @mumoshu
    Collaborator

    @schollii I think #270 fixed this issue. Would you mind confirming?

  6. schollii commented on Jun 3, 2021

    @schollii
    Author

    It looks like it might but I have to try it to be sure. I will post result soon.

  7. stale commented on Sep 3, 2021

    @stale

    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.

  8. schollii commented on Oct 12, 2021

    @schollii
    Author

    Looks like #270 fixes this indeed

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions