PSRule
PSRule copied to clipboard
Improve version expression reason
For the case:
field: properties.grafanaMajorVersion
version: '>=10'
The outputted reason is Path properties.grafanaMajorVersion: The version '9.-1.-1' does not match the constraint 'PSRule.Data.SemanticVersion+VersionConstraint'.
This could be improved by:
- Handling the
-1when the value is just9instead of9.0.0. - Fix the string formatting for the constraint.
Example case: https://github.com/Azure/PSRule.Rules.Azure/pull/2883