YAML generated by Ruby appears invalid (!omap vs !!omap) -


i trying parse yaml generated ruby code (https://github.com/devrandom/gitian-builder/blob/81bf5d70252363a95cb75eea70f8d1d129948013/bin/gbuild#l322). trying parse using pyyaml. when pyyaml had trouble parsing yaml, tried online validator (http://yaml-online-parser.appspot.com/) , failed following error:

error:  not determine constructor tag '!omap'   in "<unicode string>", line 1, column 5:     --- !omap         ^ 

i see on yaml website (can't post more 2 links yet) !!omap appears correct, not !omap. why ruby output !omap when yaml::omap used?

i can't find online explain behavior.

if want see example of yaml trying parse, search gitian.sigs repo on github under bitcoin account , @ of .assert files there (again, can't post more 2 links).

it turned out legacy thing syck. while should !!omap, told should able tell parser !omap same !!omap.

see: https://github.com/tenderlove/psych/issues/241


Comments