Skip to content

fix used_plugins to only return real traits using proper format#142

Open
haarg wants to merge 1 commit intojjn1056:masterfrom
haarg:fix-used_plugins
Open

fix used_plugins to only return real traits using proper format#142
haarg wants to merge 1 commit intojjn1056:masterfrom
haarg:fix-used_plugins

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