-
Notifications
You must be signed in to change notification settings - Fork 703
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 list-bin is broken #8664
Comments
Changing the flag passed to |
@athas great catch, thanks! I think, the right way to do it is |
I think we shouldn't use logging functions for that. This isn't a log, it's normal output. I'd expect |
And we really need a test for list-bin. This isn't the first time it breaks |
@fgaz that makes sense. If you read the initial ticket by @andreasabel #8400, it seems there was an argument for that had to do with the desire to have some more control than what what a mere |
The intention of #8400 was to make it possible to get a test for Refs: |
That sounds like right way to go for now. |
And I suppose an actual solution might just use |
Turns out we had a test case for Ref: |
I also screwed up with approving the patch. Thank you Andreas for quickly acting on this! |
Lovely! Thanks for the fix. Now my hacky Makefile will work a little while longer. |
Reopening, the fix in #8670 misses a newline character. Depending on your terminal emulator it might look a bit different. In
but look at the last character:
|
We'd also need a new test that checks the newline. |
This isn't directly in the scope of the test framework, since it adds the newline: cabal/Cabal/src/Distribution/Simple/Utils.hs Lines 622 to 625 in a78d77b
|
Since I am assigned to this issue, I will suggest a PR. |
Fix #8664 redux: add EOL character to list-bin output
Since b2be49c (#8622)
cabal list-bin
no longer produces any output on any project I try it on. If I change the use ofinfo
back toputStrLn
, it works again.Steps to reproduce the behavior: In the cabal repository itself:
cabal list-bin cabal
It is also possible that I am holding it wrong (I don't understand this entire
info
machinery), but I don't see how a command likelist-bin
can possibly require any complexity or subtle behaviour.The text was updated successfully, but these errors were encountered: