Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: Requring minimum perl version in a cpanfile ( use lib '.'; )

by Anonymous Monk
on Jan 20, 2017 at 07:59 UTC ( [id://1179973]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Requring minimum perl version in a cpanfile ( inc::Module::Install )
in thread Requring minimum perl version in a cpanfile

No, no I don't think so, that would be hella stupid :)

  • Comment on Re^5: Requring minimum perl version in a cpanfile ( use lib '.'; )

Replies are listed 'Best First'.
Re^6: Requring minimum perl version in a cpanfile ( use lib '.'; )
by Corion (Patriarch) on Jan 20, 2017 at 08:01 UTC

    I interpret this discussion towards the idea of not supporting . in @INC in the future for somewhat plausible security reasons.

    Note that this would not prevent manually adding dot to @INC.

    Update: Also see this bug ticket, which I think was the original report.

      Heheh, ok this

      But I have another proposal. Instead of modifying CPAN clients, builders and App::Prove to inject '.' into @INC, what about instead injecting in @INC the *absolute path of the root of the distribution* being configured/built/tested/installed? I think that this would considerably reduce the number of side effects and it would help to really isolate runtime code that relies on '.' being in @INC (assuming that code is covered by a testsuite).

        Yes, if they do that, I think that should solve all these problems, and it's certainly better than adding the current directory as ".".

        In any case, I think it helps to be aware of the potential issue when using inc/-style module distribution/installation kits, especially when they won't get automatically updated ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1179973]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found