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 ;)