Skip Menu |

This queue is for tickets about the SVG CPAN distribution.

Report information
The Basics
Id: 121197
Status: resolved
Priority: 0/
Queue: SVG

People
Owner: MANWAR [...] cpan.org
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.65
Fixed in: 2.67



Subject: Makefile.PL generates hybrid Meta-1.x data wrongly


https://metacpan.org/diff/file?target=MANWAR%2FSVG-2.65%2F&source=SZABGAB%2FSVG-2.64#META.json

This is because you're using Meta 2.0 structures and EUMM is only generating 1.x structures.

To solve this, you need to ensure the following data is in your input META:

 

 

    'meta-spec' => { version => 2 }

 

Otherwise EUMM assumes Version 1 input.

 

Make sure to diff the releases before releasing next time to ensure this is fixed as intended :)



-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
 

Thanks @KENTNL for pointing the error and suggestion. Much appreciated. Best Regards, Mohammad S Anwar

On 2017-04-17 21:13:36, MANWAR wrote:
> Thanks @KENTNL for pointing the error and suggestion. Much appreciated.
>
> Best Regards,
> Mohammad S Anwar

I should also point out the wrong JSON is still present in 2.66

https://metacpan.org/diff/file?target=MANWAR%2FSVG-2.66%2F&source=SZABGAB%2FSVG-2.64#META.json

But this seems I overlooked something in your code as well :(

 

     resources => {
            repository => {    # <-- this level of nesting is missing but necessary for the right result
              type  => 'git',
              url   => 'https://github.com/manwar/SVG.git&#39;,
              web   => 'https://github.com/manwar/SVG&#39;,
            }
        },

You only have  resources->{type} but you need  resources->{repository}->{type}

 

Local testing suggests this *SHOULD* Be enough.


-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
 

Fixed.