Subject: | CPANPLUS/Config.pm should not be created if an alternate location is chosen (ie ~/.cpanplus/config) |
Right now during the configure process if you opt to have the config some place other than CPANPLUS/Config.pm. CPANPLUS/Config.pm-orig is still copied over to CPANPLUS/Config.pm. The problem with this is that even though you are warned to set PERL5_CPANPLUS_CONFIG to the location of your config file, cpanplus loads the contents of CPANPLUS/Config.pm-orig instead (which doesn't contain your customizations and will break)
I found this issue when I set the config to be located under .cpanplus during 'perl Makefile.PL' and when I did the "make test" step, everything was fine until t/20_CPANPLUS-Dist-MM.t when it tested the location of 'make' and failed because it used the contents of Config.pm-orig and not the alternate config we created.
Also at the end of the "perl Makefile.PL" step the it might be nice to remind stupid people like me to maybe run
PERL5_CPANPLUS_CONFIG=/home/jbisbee/.cpanplus/config make test
In short this will save folks from run cpanplus with the generic config they didn't setup.