-
Notifications
You must be signed in to change notification settings - Fork 697
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-build
treats haddock failures fatally
#5232
Comments
this seems like a high priority bug :) where in the cabal code base is this issue? i can poke around but if theres some know how, i'd like to help get this into a point fix post haste! |
Carter, look here cabal/cabal-install/Distribution/Client/ProjectBuilding.hs Lines 941 to 945 in 457ebb8
|
@alexbiehl ok, that helps! |
We should do both I think:
|
@alexbiehl is your haddock work on master a fix to for master, or unrealted clean up? should i do this patch for 2.2 or master? |
i'm trying to test build cabal and i'm getting this fun error Resolving dependencies... |
this hacky first cut of a patch seems to work now that i got the build working :) |
the current patch just demotes haddock failures unconditionally to an adhoc warning, the right approach might be to add support for "warnings" along with full build failures. additionally: it'd probably be good to have / retain the option to treat haddock failures as errors either per package build or globally? additionally additionally: cabaly shouldn't even invoke haddock when theres no docs to build probably?! |
Yeah, the behaviour is yet to be specified. For the other issue take a look here: cabal/Cabal/Distribution/Simple/Haddock.hs Line 111 in 335fa8d
You might want to not invoke haddock if argTargets is empty. |
If you look I wrote a new function that soesnst rethrow
…On Tue, Apr 17, 2018 at 7:45 PM Alexander Biehl ***@***.***> wrote:
Yeah, the behaviour is yet to be specified.
For the other issue take a look here:
https://github.com/haskell/cabal/blob/335fa8d82520bad1a6980fd55230e65889c99860/Cabal/Distribution/Simple/Haddock.hs#L111
You might want to not invoke haddock if argTargets is empty.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5232 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAQwhiQuwlx6jj8P9SYTqgidumLJneTks5tpn6ZgaJpZM4S6Uyq>
.
|
@alexbiehl thx! i'll have a look at that after i catchup with a few other things this week (my janky patch for now has me unstuck on a huge backlog at the moment :) ) Is there a mechanism in cabal at the moment for easy logging / posting of non-fatal warnings/errors to logs/user stdout/stderr? what are the current cabal-install standards for these? |
ok, i pushed some partially done changes,
|
I'm a little lost about where i can get the right LocalBuildInfo / Library / ComponentLocalBuildInfo args from :( |
Thanks!
Also your patch makes it look way cleaner than what I was trying to do.
Many thanks.
…On Fri, Jul 27, 2018 at 7:36 AM Alexis Williams ***@***.***> wrote:
Closed #5232 <#5232> via #5459
<#5459>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5232 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAQwjHIlSGNq7nlk9VbuXsaF_fo8RIPks5uKvslgaJpZM4S6Uyq>
.
|
originally reported at haskell-infra/hackage-trustees#146
cabal new-build
currently fails whenhaddock
fails (e.g. due todocumentation: True
set globally; note that Haddock currently fails for packages w/o any local modules);instead,
cabal new-build
ought to merely record/log/warn about them, but otherwise carry onThe text was updated successfully, but these errors were encountered: