-
Notifications
You must be signed in to change notification settings - Fork 217
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
clone-modules: gets confused when CPAN distribution is named differently from module #722
Comments
Both We can probably look up the "main module name" from |
Looks like @skaji has already did some work in this part: https://metacpan.org/pod/Distribution::Metadata |
This will be fun... the "receipt" of LWP looks is this:
The actual module names are listed under "provides", we could let OTOH, the top-level keys give us this
Which does not mention "LWP" at all. For the purpose of |
I give this a bit of thoughts and it now seems to me that, for the scope of perlbrew the sensible solution is to make |
Why go from module name -> distribution name -> module name at all? We know what modules are installed, so just reinstall those, without converting to dist name. |
@karenetheridge Because that is how
I guess the definiton of "modules" might be different in different places. |
Ok so this is an ExtUtils::Installed bug then.
..is clearly wrong. |
perldoc clone-modules
appears to assemble a list of modules installed against one perlbrew-installedperl
before trying to install them against a different perlbrew-installedperl
. However, when it goes out to CPAN to look for the latest versions, it is searching for distributions. It fails when a CPAN distribution contains no*.pm
file corresponding to the name of the distribution.Excerpts from the output of
perlbrew clone-modules 5.32.0 5.34.0
attempted today:There's a
Role-Identifiable
distribution, but noRole::Identifiable
module. (See https://metacpan.org/pod/Role::Identifiable::HasTags)There is a TAP-Harness-Multiple distribution, but inside it the modules are
TAP::Harness::Archive::MultipleHarnesses
andTAP::Harness::ReportByDescription
.The distribution is libwww-perl, but no libwww::perl module. The most prominent module in the distribution is LWP.
I believe there are ways to map modules to distributions and vice versa. Their use should be explored here.
The text was updated successfully, but these errors were encountered: