-
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::Merge + merging "release_status" is undesirable. #74
Comments
I don't think the current default is wrong, but one could argue another behavior is better. I'm not sure what's the best way to approach this. Possibly adding a
This is probably because CPAN::Meta::Convert getting in between. I'm increasingly feeling like that was a bad idea.
Already done ;-) |
Semantically, I think merging a more stable status with a less stable status should result in the less stable status. I.e. you can downgrade with a merge, but you can't upgrade. I can't think of a good use case for going the other way. I think that would "fix" the dzil example. |
09:36 < ether> I'm going to put out there my initial supposition: when each plugin supplies metadata, it should also now supply a hints hash where it indicates the merge policy that should be in effect (or let dzil decide, if omitted): "this should override whatever's there", "try to merge sanely and die if there ... |
https://rt.cpan.org/Ticket/Display.html?id=99852 holds another case where merging falls down flat. I'm still poking at this to see why a 'dzil build' in my bundle repo works fine, but the tests cause merging to blow up. |
Sounds reasonable, and shouldn't be too hard to implement. |
Hi, I am not sure if my problem is the problem you are discussing. If not, I'll open a new issue. In my Makefile.PL I have following code:
However, in
I tried replacing I tracked the problem down to |
@van-de-bugger are you using Dist::Zilla? If so, it forces release_status based on version. There's a pull request to change that, not yet merged: rjbs/Dist-Zilla#438 |
Not yet. In that experiment I used hand-made plain |
Is this in a repo somewhere? I'd like to take a look. CPAN::Meta::Converter is supposed to respect an existing release_status. |
Here is a simple test case:
|
That sure seems like a bug. I'll dig into it. |
@van-de-bugger, recently you've reported a number of bugs, which is great. The next stage of greatness is if your test could be in the form of a |
@van-de-bugger, fixed in 15850b3. The "problem" was that |
As seen on
#[email protected]
This code block involves
CPAN::Meta::Merge
, and renders some painful problems, and its not clear if its a dzil bug, or aCPAN::Meta::Merge
bug or both (that is to say, its not obvious where code has to be changed for this to continue to work)Now, you combine this block of code with a plugin that does
And the side effect is as if they'd done as follows:
Interestingly, replacing the second value with a bogus value like "development" or "asdf" silently has no problem here
( I suspect due to the invalid term simply getting ignored and aliased to "stable" )
More over, the failure message it renders in such a case could be improved either way, had to do a bit of debugging to trace what was causing it =)
Could be more descriptive + more context.
The text was updated successfully, but these errors were encountered: