Skip to content

Instantly share code, notes, and snippets.

@hkoba
Created October 31, 2020 05:29
Show Gist options
  • Save hkoba/7156c84f058769bc3abf52f95dd9537e to your computer and use it in GitHub Desktop.
Save hkoba/7156c84f058769bc3abf52f95dd9537e to your computer and use it in GitHub Desktop.
This is why Module::Build::Pluggable do not work well with subclassing. `use MyBuiilder` just destroys `_build`.
DB<2> T
@ = DB::DB called from file '/usr/share/perl5/vendor_perl/File/Path.pm' line 271
. = File::Path::rmtree('_build', 0, 0) called from file '/usr/share/perl5/vendor_perl/Module/Build/Base.pm' line 5283
. = Module::Build::Base::delete_filetree('Module::Build', '_build') called from file '/usr/share/perl5/vendor_perl/Module/Build/Base.pm' line 1064
$ = Module::Build::Base::subclass('Module::Build', 'code', '^J use Module::Build::Pluggable;^J sub resume {^J my $class = shift;^J my $self = $class->SUPER::resume(@_);^J Module::Build::Pluggable->call_triggers_all(\'build\', $self, [[\'Module::Build::Pluggable::CPANfile\',undef]]);^J $self;^J }^J ') called from file '/usr/local/share/perl5/5.30/Module/Build/Pluggable.pm' line 30
. = Module::Build::Pluggable::import(undef, 'CPANfile') called from file '/home/hkoba/db/work/2020/App-oo_modulino_zsh_completion_helper/misc/cpan/MyBuilder.pm' line 8
. = MyBuilder::BEGIN() called from file '/home/hkoba/db/work/2020/App-oo_modulino_zsh_completion_helper/misc/cpan/MyBuilder.pm' line 8
. = eval {...} called from file '/home/hkoba/db/work/2020/App-oo_modulino_zsh_completion_helper/misc/cpan/MyBuilder.pm' line 8
$ = require 'MyBuilder.pm' called from file './Build' line 42
. = main::BEGIN() called from file '/home/hkoba/db/work/2020/App-oo_modulino_zsh_completion_helper/misc/cpan/MyBuilder.pm' line 8
. = eval {...} called from file '/home/hkoba/db/work/2020/App-oo_modulino_zsh_completion_helper/misc/cpan/MyBuilder.pm' line 8
DB<2>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment