-
Notifications
You must be signed in to change notification settings - Fork 704
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
unbreak cabal haddock --disable-documentation #8330
Conversation
More or less, what I see locally reproduces in the CI: https://github.com/haskell/cabal/runs/7571243588?check_suite_focus=true |
Is |
409301f
to
501a574
Compare
@Mikolaj wow, I was positive that removing |
501a574
to
568268a
Compare
-- Test that `cabal haddock --disable-documention` works as expected and leads | ||
-- to a warning if a local package makes an outer reference. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we perhaps extend the test to also display the warning (for some other module?)? The very text of the warning may be fragile, but if we notice we need to update it too often as haddock gets message overhauls, we can grep for a couple of keywords instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. See the assert
below. Is it good?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see you approved, so I guess it's good.
568268a
to
97cb72e
Compare
@Mikolaj does it need a changelog entry? |
I don't think so. You are fixing a change that wasn't yet released, so nobody's going to know. :) |
Right, I forgot #8259 wasn't backported to 3.8. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ulysses4ever !
97cb72e
to
033b043
Compare
Trying to fix my fault from #8259 (thanks @andreasabel for noticing):
cabal haddock --disable-documentation
seems to work as expected with this patch.Below is a description of a problem I initially had but no more. Preserved for historical interest.
But the testsuite is not cooperating. I see two options: you, guys, help me or allow me to ditch the test.
Here's the deal with the test:
should work, but it fails even when
I see the output I'm expecting to see, in particular:
but the output ends with
Which is no good, as far as I understand. If I remove
fails
in the.hs
file, the failure in the end seems to be the same. So, I'm probably usingfails
wrong?..Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!