Re: [Module-build-general] [BUG] non-numeric $VERSION comparison error
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2003-07-29 20:09:05
|
On Tuesday, July 29, 2003, at 06:00 AM, Steve Purkis wrote:
> Hiya,
>
> I get an error when trying to require a development version of a
> module, for example:
>
> Module::Build->new(
> ...
> requires => { 'Module::Build' => '0.19_03' }
> );
>
> This results in the following when I try to create a build script
> w/M::B 0.19_01 installed:
>
> ...
> Argument "0.19_03" isn't numeric in numeric ge (>=) at (eval 29) line
> 1.
> Argument "0.19_01" isn't numeric in numeric ge (>=) at (eval 29) line
> 1.
>
> Moreover, it *doesn't* print out an 'ERROR: ...' line, as expected.
> This doesn't go away after I install 0.19_03.
Good catch. The version comparison stuff probably needs some work, and
I'm not sure I'm completely up-to-date on the Totally Correct way to
compare version numbers/strings. Do you know much about this?
(By the way, you probably should use 'build_requires' rather than
'requires' for the Module::Build dependency. I'm sure that has the
same bug, though.)
-Ken
|