develooper Front page | perl.perl5.porters | Postings from February 2017

[perl #130467] Default perl builds to not include . in @INC(default_inc_excludes_dot)

Thread Previous | Thread Next
Todd Rinaldo via RT
February 8, 2017 18:28
[perl #130467] Default perl builds to not include . in @INC(default_inc_excludes_dot)
Message ID:
On Wed, 08 Feb 2017 03:02:39 -0800, wrote:
> Including Module::Install *does* implicitly encourage it. The only way
> would be to document very very clearly that it should not be used. At
> the same time, this also implies an adoption of this by p5p, even if
> to slowly deprecate it.
> This raises another question on my part: Is the intention for this to
> be for good, or for a period? If for a period, how long of a period?

So the very ROUGH numbers I have are that ~3900 out of 35,000 modules on CPAN use Module::Install. That's ~11% of CPAN. I'm not optimistic even Karen could get patched or adopt that many modules. This would probably be with us for some time. I got this by putting all of minicpan into a git repo and I know there are a few dupes.

After talking with toolchain, the below idea has been floated. It would allow us to ship ONLY this one file and not M::I with Perl. We could add docs, warnings, etc. to make it clear this is a shim ONLY for working around Module::Install's incompatibility with . not being in @INC.

File: lib/inc/Module/
package Fake::inc::Module::Install;

    my $mi = "inc/Module/";
    push @INC, '.' if $INC[-1] ne '.';
    if( -e "./$mi") {
        require "./$mi";
    else {
        die("Could not find inc/Module/ during module installation.");


via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About