Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Can not install helm-unittest at v0.2.9 #178

Closed
duc2h opened this issue Sep 26, 2022 · 12 comments
Closed

Can not install helm-unittest at v0.2.9 #178

duc2h opened this issue Sep 26, 2022 · 12 comments

Comments

@duc2h
Copy link

duc2h commented Sep 26, 2022

  • I encounter the issue when i try to install helm-unittest by this command helm plugin install https://github.com/quintush/helm-unittest with the latest version v0.2.9.
  • my error:
Run helm plugin install https://github.com/quintush/helm-unittest
cygpath: not found
./install-binary.sh: 16: cygpath: not found
./install-binary.sh: 19: [[: not found
./install-binary.sh: 72: [[: not found
Support linux-amd6[4](https://github.com/manabie-com/backend/actions/runs/3124909320/jobs/5068778436#step:4:5)
Retrieving https://api.github.com/repos/quintush/helm-unittest/releases/latest
./install-binary.sh: 82: [[: not found
Downloading https://github.com/quintush/helm-unittest/releases/download/v0.2.9/helm-unittest-linux-amd[6](https://github.com/manabie-com/backend/actions/runs/3124909320/jobs/5068778436#step:4:7)4-0.2.[9](https://github.com/manabie-com/backend/actions/runs/3124909320/jobs/5068778436#step:4:10).tgz to location /tmp/_dist/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

[10](https://github.com/manabie-com/backend/actions/runs/3124909320/jobs/5068778436#step:4:11)0 19.0M  100 19.0M    0     0  69.9M      0 --:--:-- --:--:-- --:--:-- 69.9M
./install-binary.sh: [11](https://github.com/manabie-com/backend/actions/runs/3124909320/jobs/5068778436#step:4:12)6: [: linux: unexpected operator
Validating Checksum.
Preparing to install into 
cp: cannot create regular file '': No such file or directory
Error: plugin install hook for "unittest" exited with error
Failed to install helm-unittest
For support, go to https://github.com/kubernetes/helm
@quintush
Copy link
Owner

Hello @edarha,

I just pushed an update to stabelize the installation script.
Try to install it again using the same command (with latest it will pick the latest commit).

If you still have troubles, installing please give me some information what os you are installing the plugin.
Also cleaning-up the helm cache path (https://helm.sh/docs/helm/helm/, there is a table showing the default locations of the folders) can help solving the problem, as the plugin installer is caching it's installation.

Greetings,
@quintush

@artiz
Copy link

artiz commented Sep 26, 2022

Hey @quintush, error is still not fixed for Linux, HELM_PLUGIN_PATH is defined as empty string

cygpath: not found
./install-binary.sh: 16: cygpath: not found
Support linux-amd64
Retrieving https://api.github.com/repos/quintush/helm-unittest/releases/latest
Downloading https://github.com/quintush/helm-unittest/releases/download/v0.2.9/helm-unittest-linux-amd64-0.2.9.tgz to location /tmp/_dist/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 19.0M  100 19.0M    0     0   168k      0  0:01:55  0:01:55 --:--:-- 58625
Validating Checksum.
Preparing to install into
cp: cannot create regular file '': No such file or directory
Failed to install helm-unittest
For support, go to https://github.com/kubernetes/helm
Error: plugin install hook for "unittest" exited with error

@quintush
Copy link
Owner

Hello @artiz,

Thanks for pointing it out.
Did not see the missing path.

Updated the script again with simplification of the path initialization, which should fix the problem.

Greetings,
@quintush

@artiz
Copy link

artiz commented Sep 26, 2022

@quintush very strange but HELM_PLUGIN_DIR is also empty. export HELM_PLUGIN_DIR=$HOME/.local/share/helm does not fix the issue

@quintush
Copy link
Owner

quintush commented Sep 26, 2022

Hello @artiz ,

The issue should now be resolved.
Sygwin validation was triggered while it should no have been, so that the path was reset to "".
I have managed to reproduce the issue van finally verified the correct validation is resolving the issue.

Greetings,
@quintush

@artiz
Copy link

artiz commented Sep 26, 2022

Hey, @quintush
Yep all is fine, issue is resolved. Thank you very much.

@BernhardGruen
Copy link

Hey,

it seems a new install only works if done without version. If I use 0.2.9 as version it still does not work. Is it possible that the git tag needs an update too? Or do you plan releasing a new version anyway?

@quintush
Copy link
Owner

Hello @BernhardGruen,

The tag is just updated, so with specific version the download should also work.

Greetings,
@quintush

@duc2h
Copy link
Author

duc2h commented Sep 26, 2022

hello @quintush
i got this issue

$ helm plugin install https://github.com/quintush/helm-unittest --version 0.2.9
Error: Unable to update repository: exit status 1

$ helm plugin install https://github.com/quintush/helm-unittest 
Error: Unable to update repository: exit status 1

@BernhardGruen
Copy link

Yes, works now. Many thanks for your really fast reaction to this. @quintush

@quintush
Copy link
Owner

hello @quintush i got this issue

$ helm plugin install https://github.com/quintush/helm-unittest --version 0.2.9
Error: Unable to update repository: exit status 1

$ helm plugin install https://github.com/quintush/helm-unittest 
Error: Unable to update repository: exit status 1

Hello @edarha,

Can you try to remove the plugin (helm plugin remove unittest) and clean the cache (clean the $HOME/.cache/helm/plugin folder and retry installing?

If that still does not work, can you please tell me which linux distro you are using? There are some small differences.

Greetings,
@quintush

@duc2h
Copy link
Author

duc2h commented Sep 26, 2022

it works fine now, thanks a lot your of effort @quintush

@duc2h duc2h closed this as completed Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants