Re: [Module::Build] .modulebuildrc documentation out of sync with code
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2006-04-06 18:34:37
|
On Apr 6, 2006, at 1:21 PM, Randy W. Sims wrote:
> David Golden wrote:
>> I posted this to RT, but I'll copy here as well:
>> Documentation for the location of .modulebuildrc
>> says .modulebuildrc should be placed in $ENV{HOME}, but the code
>> actually searches the following environment variables: APPDATA
>> HOME USERPROFILE WINDIR SYS$LOGIN.
>> This is particularly confusing because HOME isn't listed first, so a
>> .modulebuildrc file place in $ENV{HOME} just mysteriously fails to
>> work
>> on Win32 where $ENV{APPDATA} exists.
>
> Instead of search for the first valid "HOME" directory, we should
> probably be looking for the first one that contains the file we
> need since all of the directories usually exist.
Agreed.
> I'm not sure about the order of the search. I would put "HOME"
> first because if it is explicitly set (esp on Windows), then it is
> probably intended to be the "primary" home dir.
Sounds reasonable. I think it's generally unlikely that people will
have more than one .modulebuildrc so I'm not too worried about
getting The Perfect Order.
-Ken
|