Skip to content

how to make it work with a shebang that uses -Mlib::relative=. ? #26

@bkerin

Description

@bkerin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions