mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
86079ca3c7
When configuring a profile dependency, if the dependent profile had a hyphen in it, it would not properly match the default version constraint of `>= 0`. This is because a hyphen indicates the version is a pre-release version and proper version matching would require the constraint to also be listed with a pre-release version string. The proper solution is to use the `+` character instead which indicates a build number, which is what the hyphen was meant to convey. In the meantime, this change properly compares version strings as SemVer and also adds tests. Signed-off-by: Adam Leff <adam@leff.co> |
||
---|---|---|
.. | ||
lockfile_test.rb | ||
requirement_test.rb | ||
resolver_test.rb |