Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable the use of cpanfile mirror syntax #269

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kiwiroy
Copy link

@kiwiroy kiwiroy commented Mar 20, 2020

This adds the

ability to specify mirrors using cpanfile's mirror syntax.
comment

which is in the DSL also mentioned here

carton commands install and update will use the mirror specified in cpanfile, as below, in the same way the PERL_CARTON_MIRROR environment variable acts, but permits easier source control of the setting.

mirror "$url";

Although there is this alternate syntax which is more specific, it is more verbose and utilising the cpanfile scoped mirror is more attractive.

carton/lib/Carton.pm

Lines 100 to 103 in d7fcb61

# local mirror (darkpan)
requires 'Plack', '== 0.9981',
dist => 'MYCOMPANY/Plack-0.9981-p1.tar.gz',
mirror => 'https://pause.local/';

Travis fails on perl < 5.14 due to requiring dist: trusty as per #268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant