when parsing YAML files generated by libmodulemd, some parsers (yq for example) will mangle floating point values, stripping trailing zeroes. This problem seems to affect mostly stream names when they are not on the right-hand side of a colon, as shown in the two snippets below.
For example, in the following snippet, the profile for ant:1.10 is mangled to ant:1.1.
I assume that this behavior is not intended, since #499 addressed part of this problem quite a while back. I will attempt to fix this issue and create a pull request. Is that okay?
Hello,
when parsing YAML files generated by libmodulemd, some parsers (yq for example) will mangle floating point values, stripping trailing zeroes. This problem seems to affect mostly stream names when they are not on the right-hand side of a colon, as shown in the two snippets below.
For example, in the following snippet, the profile for
ant:1.10
is mangled toant:1.1
.And another example where
perl:5.30
becomesperl:5.3
(I minimized this one to reduce noise):I assume that this behavior is not intended, since #499 addressed part of this problem quite a while back. I will attempt to fix this issue and create a pull request. Is that okay?