-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Software::LicenseUtils->guess_license_from_meta doesn't work on META.json #39
Comments
Agreed, it should use CPAN::Meta to parse the meta file properly and extract the data using the API, rather than using a regex on the file. |
Incoming #hacktober #cpan-prc PR. |
From
In A naive conversion of guess_license_from_meta to use CPAN::Meta for parsing will thus convert a 1.x META file containing Would we be sad to change to this result? I can keep the current behavior while using the CPAN::Meta toolbox, but it'll require more juggling. E.g. using |
Software::LicenseUtils->guess_license_from_meta is documented as working on META.json, it uses a regex to find the license which only accounts for a single string value. license in meta v2 is an array, so it is unable to match properly.
The text was updated successfully, but these errors were encountered: