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

Plugin cannot install 0.10.2: Unable to update repository #145

Open
gildas opened this issue Apr 29, 2022 · 2 comments
Open

Plugin cannot install 0.10.2: Unable to update repository #145

gildas opened this issue Apr 29, 2022 · 2 comments

Comments

@gildas
Copy link

gildas commented Apr 29, 2022

On my Linux desktop, I just ran the usual install command but got the error Unable to update repository, reran it in debug:

helm --debug plugin install https://github.com/chartmuseum/helm-push                
[debug] vcs_installer.go:162: updating https://github.com/chartmuseum/helm-push
Error: Unable to update repository: exit status 1
helm.go:84: [debug] Unable to update repository: exit status 1

as you can see there is no .git at the end of the command.

Out of curiosity, I tried an helm update on a Mac where I still had an old version of the plugin 0.7.1, I get a similar error:

helm --debug plugin update push
plugin_update.go:65: [debug] loading installed plugins from /Users/gildas/.local/share/helm/plugins
[debug] vcs_installer.go:97: updating https://github.com/chartmuseum/helm-push
Error: Failed to update plugin push, got error (Unable to update repository: exit status 1)
helm.go:84: [debug] Failed to update plugin push, got error (Unable to update repository: exit status 1)
main.(*pluginUpdateOptions).run
	helm.sh/helm/v3/cmd/helm/plugin_update.go:84
main.newPluginUpdateCmd.func3
	helm.sh/helm/v3/cmd/helm/plugin_update.go:49
github.com/spf13/cobra.(*Command).execute
	github.com/spf13/[email protected]/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
	github.com/spf13/[email protected]/command.go:974
github.com/spf13/cobra.(*Command).Execute
	github.com/spf13/[email protected]/command.go:902
main.main
	helm.sh/helm/v3/cmd/helm/helm.go:83
runtime.main
	runtime/proc.go:255
runtime.goexit
	runtime/asm_amd64.s:1581
@gildas
Copy link
Author

gildas commented Apr 29, 2022

Found a way to install: clear the helm cache before:

rm -rf $(helm env HELM_CACHE_HOME)

Then, the plugin install succeeds.

Thanks to: jkroepke/helm-secrets#98

@biello
Copy link

biello commented Aug 14, 2023

Found a way to install: clear the helm cache before:

rm -rf $(helm env HELM_CACHE_HOME)

Then, the plugin install succeeds.

Thanks to: jkroepke/helm-secrets#98

Thank you, it works for me 🌸

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

2 participants