-
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
CPAN::Meta::Converter needs to support converting metadata fragments #41
Comments
I suspect the ideal would be to have a default_from_version argument or some such. Being able to explicitly give the meta-spec is kind of required for this to be workable but different tool may have different sensibilities on what'd be the best default. |
CMC is per-hash:
So I suppose we could let that take options:
And then:
Possibly, |
FWIW, internally, CMC already has a 'spec' field, so that's probably the way to go:
Though we probably still need some way to not generate new fields, so maybe this:
|
Is this totally done now? |
This is done with CPAN::Meta::Merge. |
Per #40 we need a way of converting fragments as might be given by
meta_merge
fields into a specific version.Something like this:
This could pick off pieces of the conversion specs. We need the "from_version" unlike the "convert" method because a fragment won't necessarily have a meta-spec field. (Though we could mandate one, I suppose.)
Alternatively, this could be done via an option to "convert", in which case, we do need to mandate a meta-spec field, and the conversion needs to use spec fields that match the input fields.
The text was updated successfully, but these errors were encountered: