-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
My exotic shebang:
#!/usr/bin/env -S perl '-Mlib::relative=.'
seems to fail under scandeps.pl:
scandeps.pl -x ./test.pl
Can't locate BarMaker.pm in @INC (you may need to install the BarMaker module) (@INC entries checked: /home/bkerin/.plenv/versions/5.42.0/lib/perl5/site_perl/5.42.0/x86_64-linux /home/bkerin/.plenv/versions/5.42.0/lib/perl5/site_perl/5.42.0 /home/bkerin/.plenv/versions/5.42.0/lib/perl5/5.42.0/x86_64-linux /home/bkerin/.plenv/versions/5.42.0/lib/perl5/5.42.0) at ./ts.pl line 6.
BEGIN failed--compilation aborted at ./ts.pl line 6.
SYSTEM ERROR in executing ./ts.pl : 512 at /home/bkerin/.plenv/versions/5.42.0/lib/perl5/site_perl/5.42.0/Module/ScanDeps.pm line 1640.
I couldn't find any way with --xargs or anything way to get the -Mlib::relative=. where it's needed (--xargs is for args to the script itself anyway I guess).
Adding use lib::relative '.' works but it would be nice to be able to do this from the command line
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels