Skip to content

Conversation

@haarg
Copy link
Member

@haarg haarg commented Sep 10, 2025

The -M option to prove should load modules basically the same way perl does. If given arguments, it should be calling the import method, not trying to call load like it is a plugin.

Before 692c19d, import and load would be called both for plugins (-P) and modules (-M). This was causing warnings and possibly in the future errors for the calls to import with extraneous arguments. When attempting to fix this, the call to import was entirely elimintated. That was not correct for the -M option. Instead, -M should call import and -P should call load.

The -M option to prove should load modules basically the same way perl
does. If given arguments, it should be calling the import method, not
trying to call load like it is a plugin.

Before 692c19d, import and load would
be called both for plugins (-P) and modules (-M). This was causing
warnings and possibly in the future errors for the calls to import with
extraneous arguments. When attempting to fix this, the call to import
was entirely elimintated. That was not correct for the -M option.
Instead, -M should call import and -P should call load.
@Leont Leont merged commit 11692ab into master Oct 13, 2025
16 checks passed
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