Re: What am I doing wrong? A bad end-user experience
Michael Conrad <[email protected]>
| Newsgroups | gmane.comp.lang.perl.perl5.porters |
|---|---|
| Message-ID | <[email protected]> |
On 9/10/26 1:23 PM, Dan wrote: > The true "solution", aside from not doing this and somehow > discouraging people from doing it, is to make local::lib install to a > versioned dir which `use lib` already recognizes, but the result of > this just like with sitelib is that after the upgrade no CPAN modules > will be usable, which still isn't a great user experience but better > than "everything is broken, and you have to ask someone how to repair it". I'll second that it should be using a versioned lib dir, and add that core's local::lib and CPAN modules should be updated so that it saves all of the .tar.gz it installed so that when the perl version changes it can see that the versioned directory is missing and spit out an error telling the user how to reinstall all of their modules from these files. (or maybe even reinstall them automatically?) To clarify, I'm suggesting that each time someone installs a perl module with CPAN.pm it would leave the .tar.gz in a cache directory within ~/perl5/ and also write the name of what was installed in some sort of log. That log could be replayed on a new version of perl using the same original files, and very likely get a user back to where they left off. The process of this re-installation could be a built-in feature of CPAN.pm -Mike C.