-
Notifications
You must be signed in to change notification settings - Fork 294
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
Make Dispatcher a singleton after first instantiation #343
base: master
Are you sure you want to change the base?
Make Dispatcher a singleton after first instantiation #343
Conversation
Welcome to Codecov 🎉Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment. Thanks for integrating Codecov - We've got you covered ☂️ |
The test suite is passing after rebasing on |
@kurtmckee many thanks! I can confirm that with this PR, plugins like dotbot-if works (wonderbeyond/dotbot-if#1) 🚢 |
This allows plugins to re-instantiate the Dispatcher (or, now, use the instance cached in `current_dispatcher`) without knowing what plugins have been loaded by dotbot. This fixes plugins that want to dispatch to other plugins. Fixes anishathalye#339
c011505
to
2549772
Compare
Rebased on |
I would be delighted if we could get this merged! |
@anishathalye I hope you're doing well! If you have an opportunity to take a look at this and see anything that needs to be modified please let me know. 👍 |
@anishathalye Friendly ping. 😁 |
Fixes #357 |
This allows plugins to re-instantiate the Dispatcher (or, now, use the instance cached in
current_dispatcher
) without knowing what plugins have been loaded by dotbot.This fixes plugins that want to dispatch to other plugins.
Fixes #339