-
Notifications
You must be signed in to change notification settings - Fork 153
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 configs in all plugins that have one #276
base: v7-in-progress
Are you sure you want to change the base?
dump configs in all plugins that have one #276
Conversation
test failures:
|
So, the UploadToCPAN plugin now wants to dump the username, which means it has to compute the username even when it didn't before. Any step that builds distmeta now gets it, which means it tries loading stuff from the global config, etc. This is failing for me, but not for you. I bet there's some bug where tests are not protecting against This exposes two general problems:
|
I've been vacillating on this a bit. What might be the default in one version may not be the default in another, and it might get annoying to have to consult the code to see what the default values are so we know what the configuration truly was -- but on the other hand, we really just care about what was in the user's dist.ini/pluginbundle that was passed to the plugin, so we can duplicate this configuration later. We'd probably have to capture the constructor args (in BUILD probably) into a
|
True, for 'build' and 'test' operations, we would be calling these when we otherwise didn't need to until release time. and yeah, no terrible need to log those; might as well drop them. Pushed new commits with 'username' dropped from UploadToCPAN, and your +PACKAGE change cherry-picked -- let's see what travis says. |
So, in the comment above about method-modifying BUILD.. I'm now leaning towards still having dump_config return
(even better, use the native 'Hash' trait and add an _exists_user_config sub) |
@kentfredric also suggests this in core: https://gist.github.com/kentfredric/8894533 |
22a95a2
to
0bf70ce
Compare
0bf70ce
to
9666d9d
Compare
9666d9d
to
2df8439
Compare
8a826a9
to
1a7b51b
Compare
1a7b51b
to
105c644
Compare
105c644
to
dd79802
Compare
fixed conflicts post-5.037 |
7885c18
to
9357d76
Compare
9357d76
to
1564f62
Compare
1564f62
to
61e5f64
Compare
61e5f64
to
81cdf1f
Compare
81cdf1f
to
0854ecd
Compare
I'll merge this or something very similar in v6, hopefully this fall/winter. |
0854ecd
to
7ce880f
Compare
7ce880f
to
1e1ee5e
Compare
1e1ee5e
to
5cb3d38
Compare
16bd758
to
5cf9f6b
Compare
Dist::Zilla::Dialect is a multi-import pragma to set up v5.20 and the features used by Dist::Zilla code code: the good stuff from v5.20 and thereabouts.
...as inspired by File::HomeDir::Tiny Note that all of this can be replaced by (glob('~'))[0] when perl 5.20 is required.
This will prevent discouraged formats from being used, even though CPAN::Meta still lets some of them in (despite contradictory language in CPAN::Meta::Spec). Following the Lyon version roundtable, _ is no longer interpreted as another dot in non-decimal versions, so the sort order can now be different.
even on MSWin32
5cf9f6b
to
e1163af
Compare
rebased to new v7-in-progress |
e1163af
to
39e0856
Compare
..for the glory of [MetaConfig]