miyagawa / Carmel

CPAN Artifact Repository Manager
Other
138 stars 17 forks source link

version pinning doesn't work when custom mirror is specified #55

Open miyagawa opened 2 years ago

miyagawa commented 2 years ago

when mirror is specified via mirror in cpanfile, that's passed to Menlo as --from/-M meaning there's no fallback to public CPAN. This removes the ability to pin to an old version with == version or with carton update Module@version.

Ideally, when mirror is used, there're two meanings:

1) Use the darkpan, no fallback to the public CPAN (current behavior) 2) Just being able to use the fast and secure mirror, such as "https://" (#42)

briandfoy commented 1 year ago

There's a third meaning for --mirror. I'd like to grab DarkPAN dists from a private, local mirror, and fall back to public CPAN then BackPAN for everything else. A project I'm working on needs all three.

miyagawa commented 1 year ago

You don't need BackPAN when you use MetaCPAN as a CPAN mirror (which is the default for Carmel) since it has everything that BackPAN would have.