Comments (5)
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.
from cpan-meta.
CMC is per-hash:
$cmc = CPAN::Meta::Converter->new( $struct )
So I suppose we could let that take options:
$cmc = CPAN::Meta::Converter->new( $struct, { version => "1.4" } );
And then:
$cmc->convert( version => "2" )
Possibly, new
should blow up if the provided version conflicts with meta-spec
.
from cpan-meta.
FWIW, internally, CMC already has a 'spec' field, so that's probably the way to go:
$cmc = CPAN::Meta::Converter->new( $struct, { spec => "1.4"} );
Though we probably still need some way to not generate new fields, so maybe this:
$cmc = CPAN::Meta::Converter->new( $struct, { spec => "1.4", fragment => 1} );
from cpan-meta.
Is this totally done now?
from cpan-meta.
This is done with CPAN::Meta::Merge.
from cpan-meta.
Related Issues (20)
- Separate 'perl' version requirement metadata HOT 8
- Spec: definition of "Boolean" is ambiguous HOT 4
- Spec: need clarification about keys x_ in prereqs HOT 4
- plan for YAML and YAML::XS strict reader errors data-fixable/98042513-META.yml HOT 1
- specific dependency phases for "extra" test grades. HOT 6
- Clarify version description given Lyon compromise HOT 2
- SPEC: create standard key for communicating dynamic dependencies to vendors/packagers HOT 24
- 2.150006-TRIAL breaks EUMM (7.18, 7.19_06) HOT 1
- EUMM 6.57_05 MYMETA.yml loses prereqs HOT 6
- CPAN::Meta::Spec says bare '1.2.3' versions are illegal, but these are not caught by CPAN::Meta::Validator HOT 2
- warning is not issued HOT 3
- Check compatibility with SPDX license identifiers HOT 1
- Include conference talks about a distribution or module in META.json HOT 5
- PERL_JSON_BACKEND supports no alternative backends but JSON.pm HOT 1
- x_ field for source git commit HOT 5
- Force bithch HOT 1
- Fallback abstract when "unknown" HOT 4
- Failed to downconvert metadata to 1.4. for List::MoreUtils
- Add fields required by Cyber Resiliency Act Annex II HOT 8
- Explode @DAGOLDEN plugin in dist.ini
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpan-meta.