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

Unable to download and install older version of the plugin (But the files are still there?) #225

Closed
LucasWiman113 opened this issue Oct 2, 2023 · 1 comment · Fixed by #232

Comments

@LucasWiman113
Copy link

Hello

I am trying to download and install an older version of the plugin, but I am getting some odd behaviour

*seroiuts02335(UnitTestAdjust)> helm plugin install https://github.com/helm-unittest/helm-unittest.git --version 0.3.1 --debug # /workspace/git/elucwim/epg [debug] vcs_installer.go:162: updating https://github.com/helm-unittest/helm-unittest.git [debug] vcs_installer.go:131: found refs: [v0.1.0 v0.1.1 v0.1.2 v0.1.3 v0.1.4 v0.1.5 v0.1.6 v0.1.7 v0.1.8 v0.2.0 v0.2.1 v0.2.10 v0.2.11 v0.2.2 v0.2.3 v0.2.4 v0.2.5 v0.2.6 v0.2.7 v0.2.8 v0.2.9 v0.3.0 v0.3.1 v0.3.2 v0.3.3 v0.3.4 v0.3.5] [debug] vcs_installer.go:142: setting to v0.3.1 [debug] vcs_installer.go:152: setting version to "0.3.1" [debug] vcs_installer.go:91: copying /home/elucwim/.cache/helm/plugins/https-github.com-helm-unittest-helm-unittest.git to /home/elucwim/.local/share/helm/plugins/helm-unittest.git plugin_install.go:82: [debug] loading plugin from /home/elucwim/.local/share/helm/plugins/helm-unittest.git plugin.go:60: [debug] running install hook: /bin/sh -c cd $HELM_PLUGIN_DIR; ./install-binary.sh Support linux-amd64 Retrieving https://api.github.com/repos/helm-unittest/helm-unittest/releases/tags/v0.3.1 No download_url found only searching for linux Downloading to location /tmp/_dist/ curl: Remote file name has no length! curl: try 'curl --help' or 'curl --manual' for more information Failed to install helm-unittest For support, go to https://github.com/kubernetes/helm Error: plugin install hook for "unittest" exited with error helm.go:88: [debug] plugin install hook for "unittest" exited with error main.runHook helm.sh/helm/v3/cmd/helm/plugin.go:67 main.(*pluginInstallOptions).run helm.sh/helm/v3/cmd/helm/plugin_install.go:88 main.newPluginInstallCmd.func3 helm.sh/helm/v3/cmd/helm/plugin_install.go:59 github.com/spf13/cobra.(*Command).execute github.com/spf13/cobra@v1.2.1/command.go:856 github.com/spf13/cobra.(*Command).ExecuteC github.com/spf13/cobra@v1.2.1/command.go:974 github.com/spf13/cobra.(*Command).Execute github.com/spf13/cobra@v1.2.1/command.go:902 main.main helm.sh/helm/v3/cmd/helm/helm.go:87 runtime.main runtime/proc.go:225 runtime.goexit runtime/asm_amd64.s:1371

But despite this, the files still appear in my folder, with the correct version aswell. But I cant run helm unit tests of course.

Screenshot from 2023-10-02 11-39-52

Error: fork/exec /home/elucwim/.local/share/helm/plugins/helm-unittest.git/untt: no such file or directory

This does not happen with the latest version 0.3.5 though. I can download and install that one just fine. But I am wondering if this is intentional? Shouldnt it be possible to download whichever version you want?

Best regards,
Lucas

@quintush
Copy link
Contributor

Hello @LucasWiman113,

When cleaning the temp and cache folder manually (see https://github.com/helm-unittest/helm-unittest/blob/main/FAQ.md#installation) you could install the older version.
Because of caching the old version keeps popping up.
With an optimization of the install script (#214) I hope to have a more stable rerun.

Greetings,
@quintush

mbaldessari pushed a commit to mbaldessari/gitea-helm-chart that referenced this issue Feb 10, 2024
…(#554)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [helm-unittest/helm-unittest](https://github.com/helm-unittest/helm-unittest) | patch | `0.3.4` -> `v0.3.6` |

---

### Release Notes

<details>
<summary>helm-unittest/helm-unittest (helm-unittest/helm-unittest)</summary>

### [`v0.3.6`](https://github.com/helm-unittest/helm-unittest/releases/tag/v0.3.6)

[Compare Source](helm-unittest/helm-unittest@v0.3.5...v0.3.6)

**Added Features**

-   Added templated Test Suites, to make re-usable tests possible (credits [@&#8203;hanseltime](https://github.com/hanseltime), resolves [#&#8203;57](helm-unittest/helm-unittest#57), resolves [#&#8203;186](helm-unittest/helm-unittest#186))

**Improvements**

-   Optimize installation (resolves [#&#8203;176](helm-unittest/helm-unittest#176), resolves [#&#8203;214](helm-unittest/helm-unittest#214), resolves [#&#8203;225](helm-unittest/helm-unittest#225))

**Fixes**

-   Fix incorrect filtering template files (resolves [#&#8203;219](helm-unittest/helm-unittest#219))
-   Fix snapshot validator with Empty documents (credits [@&#8203;matthyx](https://github.com/matthyx))
-   Fix inconsistent results lengthEqual validator (credits [@&#8203;hanseltime](https://github.com/hanseltime))
-   Fix global values (credit [@&#8203;zidoshare](https://github.com/zidoshare), resolves [#&#8203;215](helm-unittest/helm-unittest#215))

**Updates**

-   Update packages to latest patch versions
-   Update documenation

### [`v0.3.5`](https://github.com/helm-unittest/helm-unittest/releases/tag/v0.3.5)

[Compare Source](helm-unittest/helm-unittest@v0.3.4...v0.3.5)

**Fixes**

-   Fix recursive subchart testing (credits [@&#8203;zidoshare](https://github.com/zidoshare), resolves [#&#8203;206](helm-unittest/helm-unittest#206))
-   Fix old containsDocument behaviour to ignore other documents in multidocument validation (resolves [#&#8203;205](helm-unittest/helm-unittest#205))
-   Fix failed_template to also work when empty documents are found (resolves [#&#8203;191](helm-unittest/helm-unittest#191))
-   Fix failed_template multi colon handling (resolves [#&#8203;200](helm-unittest/helm-unittest#200))
-   Fix glob all valid filenames (resolves [#&#8203;201](helm-unittest/helm-unittest#201))

**Updates**

-   Update packages to latest patch versions
-   Update documenation (thanks to [@&#8203;yariksheptykin](https://github.com/yariksheptykin))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NC4wIiwidXBkYXRlZEluVmVyIjoiMzcuNDQuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/554
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
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

Successfully merging a pull request may close this issue.

2 participants