neilb / PAUSE-Permissions

Perl module PAUSE::Permissions, which provides an interface to the 06perms.txt file generated by PAUSE
0 stars 10 forks source link

environmental variable to set location of CPAN #5

Open charsbar opened 10 years ago

charsbar commented 10 years ago

PAUSE::Permissions allows us to specify location of a CPAN mirror when we create a new object, which is nice especially when we have a local mirror at hand.

It may also be nice to have an environmental variable to set location of a CPAN mirror, so that users of other tools (such as Test::PAUSE::Permissions) can set location of a CPAN mirror easily, without modifying their codes/tests.

neilb commented 10 years ago

Something like PAUSE_PERMISSIONS_URL, I guess. A bit more Moo for me to learn :-)

simbabque commented 5 years ago

Is this still needed?

charsbar commented 5 years ago

Yes, we don't need to fetch 06perms from a remote CPAN mirror when we have one at hand, but we don't want to embed the path to the local mirror, which doesn't always exist in other (say, CI or one-time contributors') environments.

simbabque commented 5 years ago

I got this dist in pr-club, I'll read up within the next week or two and do this.