Add --cpan-metacpan-api-url flag for custom MetaCPAN instances#2146
Open
NicholasBHubbard wants to merge 1 commit intojordansissel:mainfrom
Open
Add --cpan-metacpan-api-url flag for custom MetaCPAN instances#2146NicholasBHubbard wants to merge 1 commit intojordansissel:mainfrom
NicholasBHubbard wants to merge 1 commit intojordansissel:mainfrom
Conversation
Contributor
|
@jordansissel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new flag
--cpan-metacpan-api-url, which can be used to point fpm to a custom MetaCPAN instance. Currently we already have a flag--cpan-mirrorfor pointing fpm to a custom CPAN mirror instead of the official CPAN. However, in the case that somebody both has a custom CPAN mirror and they are serving a custom MetaCPAN instance on top of that mirror, they need a way to point fpm at both. Without this flag, fpm will query the official MetaCPAN to resolve module metadata, but then attempt to fetch the tarball from the custom CPAN mirror. If the mirror contains modules or versions that aren't indexed by the official MetaCPAN, those lookups will fail.