Re: [Module::Build] PERL_MM_USE_DEFAULT
Status: Beta
Brought to you by:
kwilliams
From: Randy W. S. <ml...@th...> - 2006-04-06 19:59:53
|
Tyler MacDonald wrote: > Yitzchak Scott-Thoennes <sth...@ef...> wrote: > >>The problem that I tried to address is module authors not giving a >>default and not realizing that this dies when you try to do an >>unattended install. I want to force a default so they don't have >>the option to unknowingly cause some users a problem. > > > This is a problem with CPAN.pm as well; if you try to do the initial > setup with PERL_MM_USE_DEFAULT=1, it loops forever on the "Select a mirror" > prompt. :-/ I've been meaning to discuss this more / submit a patch, but my > backlog has been insane lately... We can: die "ERROR: This build script not safe for unattended installs. Please notify @{[$self->dist_author]} that they wrote a bad bad Build.PL. Please ask them to provide reasonable defaults or switch to the new ask() method." if $ENV{PERL_MM_USE_DEFAULT} && (called_without_default(y_n) || called_without_default(prompt); __END__ |