-
Notifications
You must be signed in to change notification settings - Fork 724
Add cfgVerbosity #10688
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
Add cfgVerbosity #10688
Conversation
d33d578 to
a0bfc7d
Compare
6d41621 to
5a0e55b
Compare
9241039 to
a4848dc
Compare
d70b9d8 to
d58c3c0
Compare
d58c3c0 to
ec02235
Compare
ec02235 to
b2f50b6
Compare
b2f50b6 to
085e216
Compare
085e216 to
bbe2cd6
Compare
|
I've marked this as blocked until I can answer the question from @ffaf1, #10688 (comment). I want to check some other branches of mine to find the code snippet that will help with an explanation. |
bbe2cd6 to
2d5d167
Compare
|
@mergify refresh |
✅ Pull request refreshed |
|
@Kleidukos and @geekosaur thanks for the approvals. I've answered @ffaf1 's question about the duplicate messages. The fix for those duplicates is in #10684 that depends on this pull request. Following @geekosaur 's suggestion, I've marked #10940 as dependent on #10684. Is there anything more I need to do to hurry up mergify? |
|
Just set the label. |
Oops. Been a while. I'm out of practice. |
I was working on a fix for #10527 and noticed that all but one of the callers of
withContextAndSelectorshad already accessed verbosity in the same way thatwithContextAndSelectorsdoes (Cmd*.hsmodules do this):cabal/cabal-install/src/Distribution/Client/CmdRepl.hs
Line 509 in 62073c9
cabal/cabal-install/src/Distribution/Client/ScriptUtils.hs
Line 340 in 62073c9
This is a refactor that adds a verbosity argument to
withContextAndSelectorsand a functioncfgVerbositythat simplifies grabbing the verbosity from the configuration or using a default value.With this a lot of
-XRecordWildCardscan be removed as can a lot of imports fromDistribution.Client.Setup.This will help with my fix for #10527 too as I may have to call
withContextAndSelectorstwice1 and don't want repeated messaging so would silence the verbosity of the first call.Footnotes
Depending on whether
cabal replshould pick the one target, Shouldcabal replpick the one package library as TARGET? #10689. ↩