CC: | james [...] mastros.biz |
Subject: | Upgrade requires 'x' because of change in .stored format |
At some point, the .stored format changed keys. Newer cpanplusses will
treat the file as completely valid, but think that no modules exist, and
do so without any sort of useful diagnostics. Relatedly, cpanplus
leaves around obsolete files whenever Storeable is upgraded.
Suggestion: When no modules exist, throw away all caches, and reload.
When .stored files cannot be loaded (retrieve returns undef or throws an
exception), throw away the file. Store a ->{version} key that is
$cb->VERSION, and if it doesn't match, throw away the file.
After this, the .stored files no longer need version numbers in the
name, and thus CPANPLUS will no longer leave around obsolete cache files.