PerlAlien / Alien-Build

Build external dependencies for use in CPAN
16 stars 25 forks source link

Easier way to apply a plugin from rc.pl file #348

Closed plicease closed 2 years ago

plicease commented 2 years ago

This seems to currently be the "correct" way:

preload sub {
  my($meta) = @_;
  $meta->apply_plugin('Fetch::HostAllowList', allow_hosts => [qw( github.com ftp.gnu.org )])
};

but we should also support something like this:

plugin 'Fetch::HostAllowList', allow_hosts => [qw( github.com ftp.gnu.org )];

like you an from an alienfile.

plicease commented 2 years ago

Should update the documentation for plugins Fetch::HostAllowList and Fetch::BlockList when done.

plicease commented 2 years ago

Maybe:

preload_plugin $name, @args;
postload_plugin $name, @args;
plicease commented 2 years ago

349 does this, but we shouldn't close this until the two plugins have updated documentation.

plicease commented 2 years ago

updated the plugins.