Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 51525
Status: open
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: alfie [...] h4c.kr
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [Patch] adding 'always' option to cpan(1) prerequisite module prompt
Date: Sun, 15 Nov 2009 00:23:07 +1100 (EST)
To: bug-CPAN [...] rt.cpan.org
From: "Alfie John" <alfie [...] h4c.kr>
Hey, See perl5-porters discussion on patching cpan(1) to have an 'always' option for prerequisite module prompting. Patch attached. Alfie

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #51525] [Patch] adding 'always' option to cpan(1) prerequisite module prompt
Date: Sat, 14 Nov 2009 10:26:12 -0500
To: bug-CPAN [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Sat, Nov 14, 2009 at 8:23 AM, alfie@h4c.kr via RT <bug-CPAN@rt.cpan.org> wrote: Show quoted text
> See perl5-porters discussion on patching cpan(1) to have an 'always' > option for prerequisite module prompting. Patch attached.
Andreas -- I wonder if "always" should change the config permanently. Though Vincent notes that should only be if "autocommit" is turned on. -- David
Exactly, the question really seems to be: what's the scope of "always"? We have many scopes in the CPAN shell: the current distro, the current item from the commandline, an expansion of a current item on the commandline, all items on the commandline, the session, the installation. So we have many flavors of "always" and that's a reason for me to shy away of adding it sloppily as an option on a definitively harmless question. I'd suggest to write a documentation patch, maybe in the FAQ section, something like this: =item 19) I'm tired of answering the same question over and over: shall I follow this prerequisite or not? Feel free to hit ^C in the middle of the dialogue or wait until you're back on the CPAN shell commandline and then type Show quoted text
cpan> o conf init prerequisites_policy
and set it to I<follow>. You may need to make this configuration change permanent manually with Show quoted text
cpan> o conf commit
From then on you will never be asked this question again.
Subject: Re: [rt.cpan.org #51525] [Patch] adding 'always' option to cpan(1) prerequisite module prompt
Date: Sun, 15 Nov 2009 10:27:38 -0500
To: bug-CPAN [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Sun, Nov 15, 2009 at 7:53 AM, Andreas Koenig via RT <bug-CPAN@rt.cpan.org> wrote: Show quoted text
> Exactly, the question really seems to be: what's the scope of > "always"? We have many scopes in the CPAN shell: the current distro, > the current item from the commandline, an expansion of a current item > on the commandline, all items on the commandline, the session, the > installation.
In the general spirit of optimizing the default settings for the typical user, perhaps we should change the default from "ask" to "follow". (And the same for build_requires). I'd really like to get to the point where running CPAN autoconfigure leaves people with a config that stops hassling them and just gets things done. People who want to be super careful to check all prerequisites and stuff are the same people that can take the time to manually configure CPAN and set everything exactly as they want. i've got to think the majority of people just want CPAN.pm to install what they need and otherwise stay out of the way. David
Subject: Re: [rt.cpan.org #51525] [Patch] adding 'always' option to cpan(1) prerequisite module prompt
Date: Mon, 16 Nov 2009 10:06:51 +0100
To: bug-CPAN [...] rt.cpan.org
From: andreas.koenig.7os6VVqR [...] franz.ak.mind.de (Andreas J. Koenig)
Show quoted text
>>>>> On Sun, 15 Nov 2009 10:28:13 -0500, "David Golden via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
> In the general spirit of optimizing the default settings for the > typical user, perhaps we should change the default from "ask" to > "follow". (And the same for build_requires).
No veto from my side. The choice of good defaults is key and the right defaults may change over time. Show quoted text
> i've got to think the majority of people just want CPAN.pm to install > what they need and otherwise stay out of the way.
Amen:) -- andreas