atrodo / App-MechaCPAN

Mechanize the installation of CPAN things
Other
2 stars 2 forks source link

Warn when loaded module version is different from the version of mechacpan script #16

Open atrodo opened 5 years ago

atrodo commented 5 years ago

From #15:

Maybe we have the code check for if the running module is going to be a different file than in the local/lib, then it compares versions and if they don't match it throws a warning and quits, so that the user can get local into sync with the current App::MechaCPAN?

Which is a good idea. We should be checking the version of the module loaded and the version in the script and warn if the versions differ. I don't think we should stop the process, but we should inform the user. I think I want to start with an error without die to make it stand out.