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
It also turns out that version.pm's qv() is not adding the leading 'v' where it should, which is where a lot of these cases are coming from in the wild, e.g.:
13:42 < leont_> Thing is, changing Validator breaks current dists, causing things that used to work to no longer work
13:42 < leont_> Probably better to solve this in Converter where possible
It also turns out that version.pm's qv() is not adding the leading 'v' where it should, which is where a lot of these cases are coming from in the wild, e.g.:
version.om is stringifying its input as verbatim as possible (except with a true v-string)
13:42 < leont_> Thing is, changing Validator breaks current dists, causing things that used to work to no longer work
13:42 < leont_> Probably better to solve this in Converter where possible
Actually it turns out to be more complicated than that:
CPAN::Meta's new method has a lazy_validation option that is enabled by default on load_* but not on create. When enabled, it causes the input to be put through Converter before being put through Validator.
One possible approach to this may be to reject this in the Validator, but fix it up in the Converter. That way things would only break on the authoring side not on the consumer side.
That said this may still be more breakage than truly necessary. Given it's not causing that much trouble, a warning in the authoring tool may also be fine.
as discussed on #toolchain today.
It also turns out that version.pm's qv() is not adding the leading 'v' where it should, which is where a lot of these cases are coming from in the wild, e.g.:
https://v1.metacpan.org/source/PJFL/Unexpected-0.45.1/lib/Unexpected.pm#L8
https://v1.metacpan.org/source/PJFL/Unexpected-0.45.1/META.json#L116
The text was updated successfully, but these errors were encountered: