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

Add optional sub to mirror keyword #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kiwiroy
Copy link

@kiwiroy kiwiroy commented Mar 25, 2020

Patch to support adding to the DSL syntax as discussed in miyagawa/cpanminus#473 specifically - miyagawa/cpanminus#473 (comment)

mirror $url => sub { requires $name => $version; ... };

In addition the latest mirror => $url will be added to each following requirement, as also discussed above.

In all cases $cpanfile->options_for_module($name) will result in a hash reference that contains a mirror key. This is designed for Menlo::CLI::Compat->resolve_name to search the specified mirror as it passes through to Menlo::Dependency there.

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