-
Notifications
You must be signed in to change notification settings - Fork 214
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
Order of dependency installation #649
Comments
What do you mean by "I specified in my manifest" and how do you specify it? In general, cpanminus supports pinning to a specific version of a module in
again, I believe cpanminus does support this if you specify them in |
I should have specified that the version is specified in the PREREQ_PM hash in Makefile.PL (which is why they are being installed in a random order). I was using |
The installation order is also random if you specify them in
Right, stable version pinning is only supported if they're specified from the root level using I recommend extracting these pinned requirements to a Also, Carmel has a nice way to handle all this in a version controlled manner and is definitely worth a look. |
Thank you so much for your insight and suggestions...and thank you for such a useful tool. P.S. As a CPAN author we don't always know how our modules will be installed...so users wishing to use CPAN modules will need to be aware of various these types of issues I would imagine. |
The order of dependency installation is random and can lead to problems when a specific version of a module is required. Example:
suppose I require version 0.04 of some module Foo, the latest version of Foo being > 0.04
...now suppose another one of my dependencies Bar requires ANY version of Foo
...if Bar is installed before my explicit callout of the required Foo, then Bar's requirement of Foo will be satisfied by installing the latest version of Foo, not the one I specified in my manifest.
To correct this would it not be possible to:
...or maybe there is some other way to handle this situation?
The text was updated successfully, but these errors were encountered: