miyagawa / Carmel

CPAN Artifact Repository Manager
Other
138 stars 17 forks source link

carmel install fails with core module that can't be updated from CPAN #102

Closed Grinnz closed 10 months ago

Grinnz commented 10 months ago

If the cpanfile contains a core-only module like File::Basename, and there is a newer version available in more recent versions of Perl but not installable from CPAN, and there is no cpanfile.snapshot yet, carmel install fails.

grinnz@home ~ [1]> cat cpanfile
requires 'File::Basename';
grinnz@home ~> carmel install
---> Installing modules...
---> Installing new dependencies: File::Basename
! Installing the dependencies failed: Installed version (2.85) of File::Basename is not in range '2.86'
! Bailing out the installation for ..
Can't find an artifact for File::Basename => 2.86
You need to run `carmel install` first to get the modules installed and artifacts built.
miyagawa commented 10 months ago

Reproduced with Carmel v0.1.56, but is fixed with Carmel v0.9.2. Should've been fixed in #69