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
If I try downloading a release binary and installing it I get the following error: sh: scripts/install_plugin.sh: No such file or directory
To reproduce
Download a binary, e.g.: wget https://github.com/chartmuseum/helm-push/releases/download/v0.9.0/helm-push_0.9.0_linux_amd64.tar.gz
Open the tar file to a specific folder:
mkdir -p helm-push # any folder name to untar the file
tar -xzf helm-push_0.9.0_linux_amd64.tar.gz -C helm-push
Install plugin: helm plugin install helm-push # here the folder name is used again
Environment
OS: Red Hat Enterprise Linux 8.6
helm: v3.3.4
helm-push: Tried with Versions 0.9.0, 0.10.1 and 0.10.3
Notes
The plugin itself appears in helm plugin list and seem (so far) to be working. It is just the installation that throws an error. I'm not sure this is reproducible though. I tried uninstalling it and re-installing it and it is always is the same but I also once installed from github directly (helm plugin install https://github.com/chartmuseum/helm-push) and maybe some configuration file was left behind 🤷♂️
Ideas
It tries to look into the scripts folder but this is not part of the release tar file. Also, the scripts/install_plugin.sh file tries to fetch data from github (lines 55 and 57). My guess is that lines 54-59 in install_plugin.sh is not necessary if installing directly from the binary. Maybe wrap that code in a conditional clause that checks if the binary is already downloaded? Or an alternate scripts/install_plugin_local.sh file (without those lines) that is also packaged in the release tar file and mentioned accordingly in plugin.yaml?
The text was updated successfully, but these errors were encountered:
I found a solution. Apparently the helm plugin install is not actually needed. Simply unpack the release binary into a folder in the helm env HELM_PLUGINS location.
That installs it correctly without any error. You can check with helm plugin list.
I'm going to close the issue. If the maintainers agree with this solution I would advise to put it somewhere in the docs. Maybe in the README in the Install section.
Description
If I try downloading a release binary and installing it I get the following error:
sh: scripts/install_plugin.sh: No such file or directory
To reproduce
wget https://github.com/chartmuseum/helm-push/releases/download/v0.9.0/helm-push_0.9.0_linux_amd64.tar.gz
mkdir -p helm-push # any folder name to untar the file tar -xzf helm-push_0.9.0_linux_amd64.tar.gz -C helm-push
helm plugin install helm-push # here the folder name is used again
Environment
Notes
The plugin itself appears in
helm plugin list
and seem (so far) to be working. It is just the installation that throws an error. I'm not sure this is reproducible though. I tried uninstalling it and re-installing it and it is always is the same but I also once installed from github directly (helm plugin install https://github.com/chartmuseum/helm-push
) and maybe some configuration file was left behind 🤷♂️Ideas
It tries to look into the
scripts
folder but this is not part of the release tar file. Also, thescripts/install_plugin.sh
file tries to fetch data from github (lines 55 and 57). My guess is that lines 54-59 ininstall_plugin.sh
is not necessary if installing directly from the binary. Maybe wrap that code in a conditional clause that checks if the binary is already downloaded? Or an alternatescripts/install_plugin_local.sh
file (without those lines) that is also packaged in the release tar file and mentioned accordingly inplugin.yaml
?The text was updated successfully, but these errors were encountered: