Skip to content

use Parse::CPAN::Meta to make guess_license_from_meta work with META.json#62

Open
spazm wants to merge 1 commit intoPerl-Toolchain-Gang:mainfrom
ZipRecruiter:39/guess_license_from_meta_json
Open

use Parse::CPAN::Meta to make guess_license_from_meta work with META.json#62
spazm wants to merge 1 commit intoPerl-Toolchain-Gang:mainfrom
ZipRecruiter:39/guess_license_from_meta_json

Conversation

@spazm
Copy link
Contributor

@spazm spazm commented Nov 1, 2017

Approach 1 of 2:

  • Using Parse::CPAN::Meta to parse the json or yaml file into
    a raw hash
    • use Parse::CPAN::Meta->load_string which handles both
      json and yaml, rather than Parse::CPAN::Meta::LOAD which
      forces yaml parsing.
  • Can't use CPAN::Meta because it already parses and normalizes
    license string.

Issue #39

…json

* Using Parse::CPAN::Meta to parse the json or yaml file into
  a raw hash
  * use Parse::CPAN::Meta->load_string which handles both
    json and yaml, rather than Parse::CPAN::Meta::LOAD which
    forces yaml parsing.
* Can't use CPAN::Meta because it already parses and normalizes
  license string.

Issue #39
@Leont
Copy link
Member

Leont commented Nov 1, 2017

This doesn't look correct to me: in meta 2.0 license is a list.

@karenetheridge
Copy link
Member

With a small unit test, the issue(s) and remedy should become clear.

@ZipRecruiter ZipRecruiter closed this by deleting the head repository Jan 24, 2023
@spazm
Copy link
Contributor Author

spazm commented Jan 24, 2023

I guess after 6 years my former employer decided to pull the plug on this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants