Skip to content
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

FEATURE: use CPAN::Meta::Merge to preserve all meta fragments while merging #334

Closed
wants to merge 1 commit into from

Conversation

karenetheridge
Copy link
Contributor

@dagolden
Copy link

This looks good to me (though GH says there are conflicts).

I'd like to see it it applied and released, as that will help resolve some long-standing metadata manipulation goals.

@karenetheridge
Copy link
Contributor Author

On Tue, Jul 29, 2014 at 07:40:31AM -0700, David Golden wrote:

This looks good to me (though GH says there are conflicts).
I'd like to see it it applied and released, as that will help resolve some long-standing metadata manipulation goals.

I'll rebase that to the 5.020 release.

@karenetheridge
Copy link
Contributor Author

rebased.

@karenetheridge karenetheridge changed the title use CPAN::Meta::Merge to preserve all meta fragments while merging FEATURE: use CPAN::Meta::Merge to preserve all meta fragments while merging Sep 1, 2014
@rjbs
Copy link
Owner

rjbs commented Oct 21, 2014

thanks, applied

@rjbs rjbs closed this Oct 21, 2014
@rjbs rjbs reopened this Oct 21, 2014
@rjbs
Copy link
Owner

rjbs commented Oct 21, 2014

I've reverted this. When it was applied and installed and I tried to build Dist-Zilla itself, I got:

Can't merge attribute resources.resources.homepage at /Users/rjbs/.plenv/versions/21.3/lib/perl5/site_perl/5.21.3/Dist/Zilla.pm line 524.

I have not investigated.

@Leont
Copy link
Contributor

Leont commented Oct 21, 2014

That error message sounds like CPAN::Meta::Merge is getting confused. I should investigate that.

@Leont
Copy link
Contributor

Leont commented Oct 23, 2014

I've reverted this. When it was applied and installed and I tried to build Dist-Zilla itself, I got:

Can't merge attribute resources.resources.homepage at /Users/rjbs/.plenv/versions/21.3/lib/perl5/site_perl/5.21.3/Dist/Zilla.pm line 524.

The error is because both [MetaResources] and [Github] are setting the resources.homepage field to different values. CPAN::Meta::Merge is correctly concluding that it can't make sense out of this.

The resources.resources.homepage is incorrect though, that should be resources.homepage. I just pushed a fix to CPAN::Meta::Merge for that, along with a better error message for the collision itself.

@karenetheridge
Copy link
Contributor Author

On Thu, Oct 23, 2014 at 12:08:26PM -0700, Leon Timmermans wrote:

The error is because both [MetaResources] and [Github] are setting the resources.homepage field to different values. CPAN::Meta::Merge is correctly concluding that it can't make sense out of this. This error message could be improved.

fwiw - I use [GithubMeta] for this.

@rjbs
Copy link
Owner

rjbs commented Oct 28, 2014

merged!

get it?

@rjbs rjbs closed this Oct 28, 2014
@karenetheridge karenetheridge deleted the topic/meta_merge branch October 29, 2014 20:57
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