Skip to content

My plugin for Perl 5.42.0 doesn't work with Devel::PatchPerl 2.08 #64

@shogo82148

Description

@shogo82148

I'm developing a plugin that applies a patch Perl/perl5#23178
It fixes a build error of Perl 5.42.0 on windows.

source file:

# lib/Devel/PatchPerl/Plugin/MyPlugin.pm

package Devel::PatchPerl::Plugin::MyPlugin;
use strict;
use warnings;

sub patchperl {
  my ($self, $perl) = @_;
  warn "my patching logic here\n";
}

1;
# patch.pl
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/lib";

$ENV{PERL5_PATCHPERL_PLUGIN} = 'Devel::PatchPerl::Plugin::MyPlugin';

use Devel::PatchPerl;

Devel::PatchPerl->patch_source( '5.42.0', './perl-5.42.0' );

1;

expected result:

$ perl patch.pl
my patching logic here

actual result:

$ perl patch.pl
Nothing else to do, '5.42.0' is fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions