-
Notifications
You must be signed in to change notification settings - Fork 701
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
cabal new-run: Do not print Up to date
#4994
Comments
See also #4789, which seems to be a more general solution. |
I guess personally, I don’t even want the |
How about |
I’ll have a look :-) … I guess that is good enough for me, so if others find the output useful, I’ll go with that. |
I was about to report this again, only to find that I have reported before. I'm sitting in a MuniHac workshop and was just annoyed by that string in the presenter's command output. My impression is that with the proliferation of So can we maybe remove that message in the default verbosity level? |
I fully support removing it in the default verbosity. Will approve a PR if anyone gets to it. I think it’s a matter of changing
|
One issue though is that it’s probably not possible under the current architecture to be sensitive to whether you run |
It seems like to address |
Any volunteers, please? We'd help, promise. :) |
@Mikolaj I'm up for it |
@cbclemmer that's good to hear, thank you. What I wrote above about distinguishing run vs. build, I think, still stands, although you not necessarily need to extend the CurrentCommand type with run because build seems to be the only reasonable exception to the general rule (don't show Up to date). Therefore, inside printPlan you can just say: print the message only if the current command is build. |
I use
cabal new-run
in scripts within my project to call the program that I am developing there, e.g. in the test suite. This is great, because it means I never accidentally test an old binary (my colleagues have to remember runningstack build
before running the test suite).But now every invocation prints
Up to date
, which is a bit annoying and odd-looking in the build log. Would it be unreasonable to skip printing that?The text was updated successfully, but these errors were encountered: