Skip to content

Commit 498c4d5

Browse files
committed
Add a note about the hacks involved in using distroless
1 parent 0b799de commit 498c4d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dumpdeps.pm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ use v5.20;
66

77
use constant LIB_IS_SYMLINK => -l "/lib";
88

9+
# This is the sign of the hacks this involves, LWP for example does a lot of
10+
# require on demand. Various other tools don't fully load things either. In
11+
# general things fail pretty obviously with module not found errors.
912
my %additional_requires = (
1013
"LWP/UserAgent.pm" => [qw(HTTP::Headers::Util LWP::Authen::Basic HTTP::Request::Common HTML::HeadParser HTTP::Config File::Temp Encode Encode::Locale LWP::Protocol::http LWP::Protocol::https)],
1114
"URI.pm" => [qw(URI/_foreign.pm URI::data URI::file URI::http URI::https)],
12-
"Plack/Runner.pm" => [qw(Getopt::Long Getopt::Long::Parser Plack::Loader Socket POSIX Carp Config_heavy.pl)],
15+
"Plack/Runner.pm" => [qw(Getopt::Long Getopt::Long::Parser Plack::Loader Socket POSIX Carp)],
1316
);
1417

1518
our $x;

0 commit comments

Comments
 (0)