diff options
author | Michael Schout <mschout@gkg.net> | 2018-06-27 14:50:10 -0500 |
---|---|---|
committer | Michael Schout <mschout@gkg.net> | 2018-06-27 14:50:10 -0500 |
commit | 746e9540e830ea8a8aea54995dca3e0e822f95bc (patch) | |
tree | 3be2cf2637dcea5c6c7bcb90c75db5fefb92d34a | |
parent | c9358bf782d2161fe2b76305be15740f32619b15 (diff) | |
download | carton-746e9540e830ea8a8aea54995dca3e0e822f95bc.tar.gz |
Add lazy loaded Menlo::Index::Mirror to the fatpack required modules
This module is lazy loaded by Menlo::CLI::Compat, and as a result,
FatPacker wont pick it up unless we explicity ask it to.
Fixes #237
-rw-r--r-- | lib/Carton/Packer.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Carton/Packer.pm b/lib/Carton/Packer.pm index b7d5dce..0562136 100644 --- a/lib/Carton/Packer.pm +++ b/lib/Carton/Packer.pm @@ -63,7 +63,10 @@ sub required_modules { $requirements{$_} = 1 for $self->required_modules_for($dist); } - [ keys %requirements ]; + # these modules are needed, but lazy-loaded, so FatPacker wont bundle them by default. + my @extra = qw(Menlo::Index::Mirror); + + [ keys %requirements, @extra ]; } sub required_modules_for { |