Closed peci1 closed 3 years ago
we can copy some of the ruby code from homebrew's version.rb file to handle version parsing and sorting
or we could try to add swig bindings for the ignition::math::SemanticVersion
class
add swig bindings for the ignition::math::SemanticVersion class
That's part of https://github.com/ignitionrobotics/ign-math/issues/101
Note that it would add a dependency to ign-math
, and this may cause a circular dependency if we ever decide to add ign-tools
to ign-math
as part of https://github.com/ignitionrobotics/ign-math/issues/198.
See pull request #50 .
Environment
Description
ign sdf
launches the latest installed sdformat commandSteps to reproduce
libsdformat8-dev
libsdformat10-dev
ign sdf --check
.I bet the problem lies in
https://github.com/ignitionrobotics/ign-tools/blob/d32853a9b4ebf21c3421f7e903e51a9c45e15849/src/ign.in#L145
which looks like C-order rather than natural order. But as my Ruby knowledge is limited, I don't know how to fix it correctly.
My system reports these version of sdformat: