-
Notifications
You must be signed in to change notification settings - Fork 783
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
Add one or more options in configuration file to disable plugin hooks #1173
Comments
Second this feature. It is really useful! |
Why is disabling plugin hooks necessary? I'm not sure what you mean by "so I can review plugin before I |
Hi @Stratus3D What I actually want is version lock on plugins. Currently only repository URLs are recorded in https://github.com/asdf-vm/asdf-plugins , so generally when I I can review plugin hooks every time before I add the plugin, but I might get careless and miss the step at any moment. However, if we record commit SHA1 in https://github.com/asdf-vm/asdf-plugins , then we will have to update asdf-plugins when the downstream plugin updated, which is a lof of work. Freshness and stability are mutually exclusive. So I maintain a clone of asdf-plugins myself, which is a set of submodules of plugin repositories. Every time I clone the repository, I can be absolutely sure that the plugin has already been reviewed by myself. I will close this issue since what I want is different feature. related issue: #166 |
Related #1204 Also note, you can "update" to a specific git ref to any sha: |
Is your feature request related to a problem? Please describe
No.
Describe the proposed solution
I'd like to implement an option like
disable_plugin_hooks
ordisable_plugin_{add,update,remove}_hook
or both in.asdfrc
:or
...so I can review plugin before I
asdf plugin add
themNo breaking changes will be introduced.
Describe similar
asdf
features and why they are not sufficientThere is no method or option to disable plugin hooks as for v0.9.0
asdf plugin add
asdf/lib/commands/command-plugin-add.bash
Lines 45 to 51 in 9ee24a3
asdf plugin update
asdf/lib/commands/command-plugin-update.bash
Lines 50 to 57 in 9ee24a3
asdf plugin remove
asdf/lib/commands/command-plugin-remove.bash
Lines 13 to 18 in 9ee24a3
Describe other workarounds you've considered
Create a plugin to clone and checkout plugin repositories.
The text was updated successfully, but these errors were encountered: