Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by perlancar (Hermit)
on Mar 10, 2020 at 00:56 UTC ( [id://11114056]=note: print w/replies, xml ) Need Help??


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.

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114056]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-29 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found