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 used_plugins to only return real traits using proper format #142

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

Conversation

haarg
Copy link

@haarg haarg commented Mar 29, 2021

Rather than filtering the traits list to ones not generated by
MooX::Traits::Util, filter for %INC entries that came from their own
files by checking that the file matches the trait name. Also ensure
traits in subdirectories are returned with double colon separators,
rather than slashes.

This addresses RT#134845

This entire function seems very suspect. I didn't fully investigate how it is used, but it really seems like it shouldn't exist. Basing anything on which plugins happen to have been loaded seems like a big mistake.

Rather than filtering the traits list to ones not generated by
MooX::Traits::Util, filter for %INC entries that came from their own
files by checking that the file matches the trait name. Also ensure
traits in subdirectories are returned with double colon separators,
rather than slashes.
@rabbiveesh
Copy link
Collaborator

rabbiveesh commented Mar 31, 2021 via email

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.

2 participants