Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-Git-Contributors CPAN distribution.

Report information
The Basics
Id: 112147
Status: resolved
Priority: 0/
Queue: Dist-Zilla-Plugin-Git-Contributors

People
Owner: Nobody in particular
Requestors: dagolden [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.019



Subject: Why is this creating a JSON::PP runtime requires dependency?
I can't think of any reason why there needs to be a runtime dependency on JSON::PP added to distributions that use this one. This appears to have inadvertently added a JSON::PP runtime dependency to the recent Capture::Tiny release. :-(
On 2016-02-18 20:22:14, DAGOLDEN wrote: Show quoted text
> I can't think of any reason why there needs to be a runtime dependency > on JSON::PP added to distributions that use this one. > > This appears to have inadvertently added a JSON::PP runtime dependency > to the recent Capture::Tiny release. :-(
It's from this commit -- https://github.com/karenetheridge/Dist-Zilla-Plugin-Git-Contributors/commit/7bf4e7fb5fab7c8543c05a03b1fdb6b152cafda0 It looks like I neglected to reference the original JSON::PP issue, which is: https://github.com/makamaka/JSON-PP/pull/9 The conditions in which the prereq is added are pretty slim. I experienced consistent failures when trying to install a module on perl < 5.8.6 when META.json contained utf8-encoded multi-byte characters on an older JSON::PP.
I haven't thought about this change in a while. With a fresh brain, it would seem to me that injecting the dependency would be useless -- dependencies are reported in META.json, which is the very thing that would not be parsable (under the conditions that this bug shows up). So by definition, any installation that is capable of getting as far as reading the dependency is an installation that does not need it. It is therefore useless.
On 2016-02-18 20:48:28, ETHER wrote: Show quoted text
> I haven't thought about this change in a while. With a fresh brain, it > would seem to me that injecting the dependency would be useless -- > dependencies are reported in META.json, which is the very thing that > would not be parsable (under the conditions that this bug shows up). > So by definition, any installation that is capable of getting as far > as reading the dependency is an installation that does not need it. It > is therefore useless.
* except when dynamic_config => 1, because prereqs are generated via Makefile.PL and META.json will never be read. (which includes your distribution)
Anyway, I removed the dependency injection in 0.019.
Subject: Re: [rt.cpan.org #112147] Why is this creating a JSON::PP runtime requires dependency?
Date: Fri, 19 Feb 2016 07:20:02 -0500
To: bug-Dist-Zilla-Plugin-Git-Contributors [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
I wouldn't care so much if it were a configure dependency, but there's no reason for a RUNTIME dependency that I can see. But thanks for removing the injection. On Feb 18, 2016 11:38 PM, "Karen Etheridge via RT" < bug-Dist-Zilla-Plugin-Git-Contributors@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=112147 > > > On 2016-02-18 20:22:14, DAGOLDEN wrote:
> > I can't think of any reason why there needs to be a runtime dependency > > on JSON::PP added to distributions that use this one. > > > > This appears to have inadvertently added a JSON::PP runtime dependency > > to the recent Capture::Tiny release. :-(
> > > It's from this commit -- > https://github.com/karenetheridge/Dist-Zilla-Plugin-Git-Contributors/commit/7bf4e7fb5fab7c8543c05a03b1fdb6b152cafda0 > > It looks like I neglected to reference the original JSON::PP issue, which > is: https://github.com/makamaka/JSON-PP/pull/9 > > The conditions in which the prereq is added are pretty slim. I > experienced consistent failures when trying to install a module on perl < > 5.8.6 when META.json contained utf8-encoded multi-byte characters on an > older JSON::PP. >
On 2016-02-19 04:20:24, DAGOLDEN wrote: Show quoted text
> I wouldn't care so much if it were a configure dependency, but there's > no > reason for a RUNTIME dependency that I can see.
My intention was "installation will fail this time, but at least you'll have JSON::PP upgraded for next time". However, the dependency only ever gets picked up if it's read from Makefile.PL (via MYMETA), which would only happen for dynamic configurations and manual installs that don't look at META first. How about a configure-suggests prereq? That should be inoffensive enough for everyone. I wish I could add a *comment* to META.json -- "if you are reading this trying to figure out why your perl cannot parse this file, it is because of..."
Subject: Re: [rt.cpan.org #112147] Why is this creating a JSON::PP runtime requires dependency?
Date: Fri, 19 Feb 2016 14:22:54 -0500
To: bug-Dist-Zilla-Plugin-Git-Contributors [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
Configure/suggests is fine with me On Fri, Feb 19, 2016 at 1:22 PM, Karen Etheridge via RT < bug-Dist-Zilla-Plugin-Git-Contributors@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=112147 > > > On 2016-02-19 04:20:24, DAGOLDEN wrote:
> > I wouldn't care so much if it were a configure dependency, but there's > > no > > reason for a RUNTIME dependency that I can see.
> > My intention was "installation will fail this time, but at least you'll > have JSON::PP upgraded for next time". > However, the dependency only ever gets picked up if it's read from > Makefile.PL (via MYMETA), which would only happen for dynamic > configurations and manual installs that don't look at META first. > > How about a configure-suggests prereq? That should be inoffensive enough > for everyone. I wish I could add a *comment* to META.json -- "if you are > reading this trying to figure out why your perl cannot parse this file, it > is because of..." >
-- David Golden <dagolden@cpan.org> Twitter/IRC: @xdg