Skip to content

Conversation

@haarg
Copy link
Member

@haarg haarg commented Jul 13, 2025

Module::Metadata and Parse::PMFile will already exclude modules using the 'hide from PAUSE' trick. There is no need to add an additional check on top of that.

oalders
oalders previously approved these changes Jul 13, 2025
@haarg haarg force-pushed the haarg/no-special-package-parsing branch 3 times, most recently from 8fbe7b0 to 181d0e3 Compare July 13, 2025 19:30
haarg added 3 commits July 13, 2025 23:23
This simplifies converting to a JSON boolean.
The files listed in provides data should be an exact match for the file
path we are using. The regex matching was added in
f3543c1 saying only "fixed regression".
I can barely guess at what it was supposedly fixing, but it was
definitely not the correct fix.
Module::Metadata, Parse::PMFile, or provides metadata already tell us
what modules exist in a file. They will not include packages hidden
using the "hide from PAUSE" trick. This was possibly needed based on
other metadata mishandling.

Some of the tests were relying on this behavior and have been removed.
They were expecting the data provided in the test to be overridden by
the additional package check, but the module list would never have been
given to them in our indexing code.
@haarg haarg force-pushed the haarg/no-special-package-parsing branch from 181d0e3 to 08bd7ef Compare July 13, 2025 21:34
@haarg haarg requested a review from oalders July 13, 2025 22:47
@haarg haarg merged commit 1a61458 into master Jul 15, 2025
3 checks passed
@haarg haarg deleted the haarg/no-special-package-parsing branch July 15, 2025 14:30
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.

3 participants