-
Notifications
You must be signed in to change notification settings - Fork 2
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
dump more configs in ::Role::MetaProvider::Provider #3
Comments
From kentnl/Dist-Zilla-Plugin-MetaProvides-Package#6 (comment):
It doesn't know how to do that.
|
Correct. However, |
Also,
Which means that being numbers or strings is really a side effect of how they're declared. I don't know, I can't think today. |
Perhaps, but it's not doing it today (it doesn't dump versions for anything but the plugin it is calling, and knows nothing about any roles used to compose it or if they modify dump_config thelselves), and I doubt rjbs would really go for something that complicated. For now at least, we need to add all data to the hash ourselves that we think is relevant.
It just looks nicer in META.json to see |
I think another objection I have is that this would be adding a meta-key in each packages metadata that doesn't map anywhere to an attribute, and that could be confusing. |
Another reason I don't want it to be so terse, is because my configuration extraction is centralised, and so, injecting For instance: https://metacpan.org/source/KENTNL/Dist-Zilla-Plugin-MetaYAML-Minimal-0.001000/lib/Dist/Zilla/Plugin/MetaYAML/Minimal.pm#L25 ^ Already has So a better name must be chosen to eliminate conflict risk. |
I don't understand the issue with [MetaYAML::Minimal] -- there is no role being consumed there that would want to dump its version into configs. I would suggest your configdumper sub should simply allow extra keys and values to be added to whatever data it dumps, and |
Its not when MetaYAML::Minimal consumes things that it becomes necessary. Its when it is consumed that it becomes necessary. For instance, if I subclassed it, and had the config_dumper go "Ok, you've been subclassed, you should show what version is being used and export it" , and its then the explosion would happen. |
I'm not interested in arguing with you why your convoluted architecture is not capable of accomodating the problem. My request was just that this particular role document its version, to aid in debugging in case a version incompatibility was the source of the problem. It's clear now that this wasn't relevant in my problem today, and you don't want to do it. |
That's not the case. I do. But I want to do it everywhere that it makes sense to, not just one place. Nothing about architecture is "incapable", I can do it on a per-role basis easily. 0fe34a7#diff-d7a31d8ac610001790ab8b6c84658821R254 But I want to do it in more than just that one place, because its a useful thing to do. |
[Dependencies::Stats] - Dependencies changed since 2.001002, see misc/*.deps* for details - configure: (recommends: ↓1) - develop: +8 ↑3 -1 (recommends: ↓1, suggests: ↑2) - runtime: (recommends: +1) - test: (recommends: ↓2) [Documentation] - Remove confusing quick reference and try to find a better way another day - kentnl/Dist-Zilla-Plugin-MetaProvides-Package#4 [Features] - Experimentally injecting the version of the role into `dump_config` data. - Part of request #3
I was going to send you a PR but the code is a spiderweb that I cannot navigate.
The text was updated successfully, but these errors were encountered: