-
Notifications
You must be signed in to change notification settings - Fork 36
How to specify prerequisites for the "develop" phase? #45
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
Comments
This is a duplicate of #34. |
I read #34 before opening this issue, and I just don't see my question answered there:
So, if I'm just using plain old Build.PL, is there a way to have a "requires" stanza for the "develop" phase? If so, how? If not, is there an alternative or workaround? |
No, I don't think so.
That should be meta_merge, however that doesn't currently work for prereqs. That is depending on Perl-Toolchain-Gang/CPAN-Meta#40. |
Thanks. Should I close this issue as WONTFIX then? |
No, it's just stalled. This will be fixed at some point, but yaks have to be shaved first. |
As of 0.4209, this would work for the META.json:
It doesn't show up in the MYMETA though, I suspect that's what you want. |
I just discovered that this merge data doesn't show up in |
Could that be changed? Maybe; CPAN::Meta::Merge didn't exist yet when that part of the code was written. Could it break things? I could, especially with regards to dynamic dependencies. How likely is that? I don't really know. |
I would guess no more likely than it breaking things when merging into the |
Does EUMM attempt to merge into MYMETA? |
Interesting. I wonder what it could have been! |
I think this happened: A dist has conditional dependencies (e.g. on OS). Such a condition is true on the author's machine. Then it builds on a machine where that condition is not true (e.g. different OS). When doing a merge the extra dependency will be included even if it shouldn't on that platform. |
I guess it would require a separate |
It seems to me that: We want develop prereqs to show up in both META and MYMETA, so we should keep those in merge_meta / merge_add. ..So only machine-specific dependencies would need to be in mymeta_*, as long as the MYMETA building process starts with |
Now that I think of it, I think I could make it work with If someone can write me a test, I can probably write the rest. |
I wrote a possible fix in #95, but could still use a test. |
I understood with issue #31 M::B supports Meta 2.0, but I can't seem to specify requires for the "develop" phase. Adding "develop_requires" to Build.PL doesn't help as anything within it does not appear in META.json or META.yml. Is there a different way to do this or is it just not supported yet?
The text was updated successfully, but these errors were encountered: