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

Fix bug dispatching by dublicate plugins #353

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

valentino-sm
Copy link

@valentino-sm valentino-sm commented Jan 4, 2024

Dotbot performs some monkeypatch during loading, where it scans plugin modules and collects every class that inherits from the Plugin interface. This makes it easy to collect the same class objects.

Plugins such as if, ifarch and ifplatform contain the following line of code:
from dotbot.plugins import Clean, Create, Link, Shell
This line is sufficient to collect duplicate plugins and dispatch the same configuration instructions twice.

See:
ssbanerje/dotbot-ifplatform#4 (comment)
#351

@valentino-sm valentino-sm mentioned this pull request Jan 4, 2024
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 this pull request may close these issues.

1 participant