I have a patch that makes Module::Build much more intelligent in the presence of
version.pm, which mostly consists of tweaking the tests to tolerate trailing
zeros. I have all tests passing at this point, but I'm getting a slew of
warnings in t/runthrough.t because YAML is freaking out about version objects
(haven't researched this yet).
However, I have a possibly better idea - rather than have Module::Build use
version objects directly, I was thinking of subclassing version.pm and keeping
the original $VERSION representation around for "public" consumption, while
still using the exact version comparison code.
This would have the notable benefit of preventing the "leaking" of the trailing
zeros in the normalized $VERSION (which has the very visible behavior of
changing the DIST name from Example-0.01 to Example-0.010). I'd rather make
everything work exactly the same as it does now (thus removing most of the
changes I made to the test files), except so far as version comparisons goes.
Does this seem like a better way to go?
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
|