I created some proprietary Perl modules I can't share so I put them into a local "darkpan" with orepan2. Here is the beginning of 02packages.details.txt.
[~] $ gunzip -c darkpan/modules/02packages.details.txt.gz
File: 02packages.details.txt
URL: http://www.perl.com/CPAN/modules/02packages.details.txt
Description: DarkPAN
Columns: package name, version, path
Intended-For: Automated fetch routines, namespace documentation.
Written-By: OrePAN2 0.47
Line-Count: 30
Last-Updated: Wed Apr 24 15:44:46 2019
MyProj::MyMod 1.201904241840 D/DU/DUMMY/MyProj-MyMod-v1.20190424.1840.tar.gz
When I type
cpanm --mirror=file:///path/to/darkpan --mirror-only MyProj::MyMod
it responds that MyProj::MyMod is up-to-date even though the version in darktab is newer. To get it to install, I have to say "MyProj::MyMod-201904241840" on the command line.
Why won't cpanm recognize that the version in the darkpan index is newer than the one installed?
Why can't I just say
cpanm --mirror=file:///path/to/darkpan --mirror-only MyProj-MyMod
in order to load this as a module and not a single package?