Re: [Module::Build] META.yml version numbers
Status: Beta
Brought to you by:
kwilliams
|
From: Chris D. <ch...@cl...> - 2003-10-10 20:39:28
|
On Friday, October 10, 2003, at 01:57 PM, Ken Williams wrote: > > On Friday, October 10, 2003, at 01:42 PM, Chris Dolan wrote: > >> I just posted a bug for YAML that affects M::B's creation of META.yml >> files. >> http://rt.cpan.org/NoAuth/Bug.html?id=4066 >> >> YAML's Dump method doesn't respect whether a scalar is a string or a >> number, so trailing zeros on version numbers are dropped when reading >> .yml files. See the above URL for a very simple failing example. >> >> I haven't yet thought of a workaround that doesn't involve changes to >> YAML.pm. > > Hi Chris, > > Yeah, this is an unfortunate bug in YAML. Apparently there's a new > version of YAML.pm that Brian's been working on, and it's been > released in a preliminary version at > http://search.cpan.org/~ingy/YAML-Parser-Syck-0.01/ . > > Fortunately the YAML we emit is correct, and it's only YAML.pm reading > it back in that's buggy. So we don't actually need to fix any bugs in > Module::Build or rely on Brian's new parser. > > -Ken Sounds good. One possible workaround would be if YAML would output version: '1.10' instead of version: 1.10 which should be safe against any valid YAML parser implementation. But, again, that relies on a change to YAML, not M::B. Sigh. I'll read up on Syck. Chris |