in reply to Re: Update dependants if installed (was: Update these modules if installed?)
in thread Update dependants if installed (was: Update these modules if installed?)

Ah yes, perhaps CPAN clients should upgrade on conflicts of "Some::Module < 0.123", although this would still cause a circular dependency failure in the case of upgrading dependants.

I'm afraid a warn() in Makefile.PL or diag() in a test script will not be seen by many cpanminus users unless they use the verbose (-v) option. And a die() will be annoying.

  • Comment on Re^2: Update dependants if installed (was: Update these modules if installed?)

Replies are listed 'Best First'.
Re^3: Update dependants if installed (was: Update these modules if installed?)
by tobyink (Canon) on Mar 10, 2020 at 14:24 UTC

    Yeah, the lack of feedback to cpanm users is an annoyance.

    Just a random thought; not great, but could be helpful. At configure-time, you could modify your pod to add an "INSTALLATION NOTES" section with text like: "This software was installed on $date at $time. At the time of installation, the following packages were already installed but now need upgrading".

      That's a nice idea and might be helpful to some; will add it to my list of things to consider for updating dependants. Thanks. For now, I'm adding "meta" (API) version checking to Log::ger for the next time this happens. At least users will get a clearer die message instead of some random failure.