-
Notifications
You must be signed in to change notification settings - Fork 36
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
Support for Bundle::* modules/dists #241
Comments
I have no plans to support that feature at the moment. |
Thanks for the quick response! Could you provide some more insight into your reasons? It'd help me understand if I should revisit my opinion of the feature myself. |
Currently, cpm accurately grasps the dependent modules from MYMETA.json. Scanning pods to detect dependent modules inevitably leaves some ambiguity, which can destabilize the operation of cpm. I do not wish to incorporate such unstable features into the main body of cpm. If you wish to do so, you can scan the pod yourself and detect the dependent modules:
|
Hmm. I'm not sure why you would call this "unstable": it's been part of CPAN since the oldest CPAN release I could find on MetaCPAN (CPAN-1.58 released on 2000-10-18). The definition (which can be found here) is pretty strict: The module collection is listed in a POD block which starts with: =head1 CONTENTS Followed by a list of modules and their versions:
Lines starting with a hash (#) character are skipped. So are empty lines. The first line starting with an It's a proven concept since over 23 years. It's always had this definition. Looking at it from that angle, I'd say it's just as stable as MYMETA.yml or MYMETA.json (or even better: META.yml or META.json). I'm afraid I do not see the fragility. Sure I could do this myself. But the point of having it in |
From the documentation, it seems
cpm
will install only the bundle module, not the bundle contents as specified by the main module's CONTENTS section. (See e.g. Bundle::DBI.)cpan
supports installation of bundles with the simplecpan install Bundle::MODULENAME
.cpanm
supports installation of bundles if you specify the additional--scandeps
argument.Due to the fact that
cpan
supports installation of Bundle::* as part of its regular installation instruction, it feels weird thatcpanm
needs an additional switch to install the Bundle specified deps. To me, it'd make most sense if the installation of specified "Bundle"s would simply be included in the dependency installation.The text was updated successfully, but these errors were encountered: