diff options
author | Tatsuhiko Miyagawa <miyagawa@gmail.com> | 2018-06-28 09:32:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 09:32:30 -0700 |
commit | fec30310973e9bda0920d4aa9edb18b1be5022e2 (patch) | |
tree | 3be2cf2637dcea5c6c7bcb90c75db5fefb92d34a | |
parent | c9358bf782d2161fe2b76305be15740f32619b15 (diff) | |
parent | 746e9540e830ea8a8aea54995dca3e0e822f95bc (diff) | |
download | carton-fec30310973e9bda0920d4aa9edb18b1be5022e2.tar.gz |
Merge pull request #241 from mschout/bugfix/237-fatpack-lazy-loaded-modules
Add lazy loaded Menlo::Index::Mirror to the fatpack required modules
-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 { |