-
Notifications
You must be signed in to change notification settings - Fork 311
Closed
Labels
Description
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 versionshows helm 3helm plugin install https://github.com/databus23/helm-diffworkshelm2 versionshows helm 2helm2 plugin install https://github.com/databus23/helm-difffails with error message thathomeis 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?