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

PERL_CARTON_MIRROR failure to fallback/cascade to other mirrors if explicit == of a package #229

Open
omega-tree opened this issue Dec 12, 2017 · 0 comments · May be fixed by #230
Open

Comments

@omega-tree
Copy link

omega-tree commented Dec 12, 2017

Ran into an integration issue and narrowed it to the following bug:

#in cpanfile
requires 'Search::Elasticsearch', '== 2.03';
# running
PERL_CARTON_MIRROR=http://some_private_host  carton install
# resulting in
! Couldn't find module or a distribution Search::Elasticsearch (== 2.03)
! Installing the dependencies failed: Module 'Search::Elasticsearch' is not installed
! Bailing out the installation for /home/flopes/projects/Ventus-Meta-Cpan/dependencies/.

This is a private minicpan mirror with a subset of packages. It does not contain any Search::Elasticsearch package. Correct me if I'm wrong but based on the code I have read in Carton, it is expected to fallback to public mirrors.

like this does (below works correctly)

# in cpanfile 
requires 'Search::Elasticsearch', '2.03';
# running
PERL_CARTON_MIRROR=http://some_private_host  carton install

Why would an explicit version throw the thing off from cascading into other mirrors?

@omega-tree omega-tree linked a pull request Dec 13, 2017 that will close this issue
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 a pull request may close this issue.

1 participant