quintush / helm-unittest

BDD styled unit test framework for Kubernetes Helm charts as a Helm plugin.
MIT License
345 stars 69 forks source link

Release 0.3.0 cannot be installed #200

Closed hugoShaka closed 1 year ago

hugoShaka commented 1 year ago

Since the 0.3.0 release, installing the plugin returns an error

$ helm plugin install https://github.com/quintush/helm-unittest

Support macos-arm64
Retrieving https://api.github.com/repos/quintush/helm-unittest/releases/tags/v0.3.0
Downloading https://github.com/quintush/helm-unittest/releases/download/v0.3.0/helm-unittest-macos-arm64-0.2.11.tgz https://github.com/quintush/helm-unittest/releases/download/v0.3.0/helm-unittest-macos-arm64-0.3.0.tgz to location /tmp/_dist/
curl: Failed to extract a sensible file name from the URL to use for storage!
curl: (3) URL using bad/illegal format or missing URL
Failed to install helm-unittest
For support, go to https://github.com/kubernetes/helm
Error: plugin install hook for "unittest" exited with error

Workaround: pinning the 0.2.11 release

helm plugin install https://github.com/quintush/helm-unittest --version 0.2.11

Support macos-arm64
Retrieving https://api.github.com/repos/quintush/helm-unittest/releases/tags/v0.2.11
Downloading https://github.com/quintush/helm-unittest/releases/download/v0.2.11/helm-unittest-macos-arm64-0.2.11.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  10.3M      0  0:00:01  0:00:01 --:--:-- 15.9M
Validating Checksum.
Preparing to install into /Users/shaka/Library/helm/plugins/helm-unittest
helm-unittest installed into /Users/shaka/Library/helm/plugins/helm-unittest
hugoShaka commented 1 year ago

It seems 0.2.11 artifacts got published as part of the 0.3.0 release and the install process doesn't deal properly with 2 items being returned.

quintush commented 1 year ago

Hello @hugoShaka,

Fixed the original download. Had some issues publishing the latest version.

The new 0.3.0 version is located in the original repository. https://github.com/helm-unittest/helm-unittest/

Keep in mind to remove the 0.2.11 version as the plugin share the same name.

Greetings, @quintush

hugoShaka commented 1 year ago

Thank you for the quick fix and the notice.

It's great to see the main repo back in sync with your fork :)