You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add rule for constraint syntax in library.properties depends field
Arduino CLI and the Library Manager system have support for specifying version constraints in the library.properties
`depends` field.
This was previously validated as part of the general `depends` field data format check in LP047.
The constraint system has recently been made much more capable through the addition of support for more syntax.
The previous approach for validating the version constraint was a complex and lengthy regular expression in the
library.properties JSON schema. Extending this to comprehensively validate the full range of constraint forms possible
with the new syntax will not be feasible or maintainable.
The new approach is to validate it using the same `go.bug.st/relaxed-semver` module used by Arduino CLI and
`arduino/libraries-repository-engine` to handle the version constraints in this field.
0 commit comments