From 8acf221b72343b5ec0ef14fbbfac94b4b4c8c451 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Fri, 12 Dec 2014 15:48:05 +0200 Subject: [PATCH] Add a FIXME --- Stackage2/PerformBuild.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Stackage2/PerformBuild.hs b/Stackage2/PerformBuild.hs index 0293d3c0..e0d6dba0 100644 --- a/Stackage2/PerformBuild.hs +++ b/Stackage2/PerformBuild.hs @@ -294,6 +294,10 @@ singleBuild pb@PerformBuild {..} SingleBuild {..} = -- Even if the tests later fail, we can allow other libraries to build -- on top of our successful results + -- + -- FIXME do we need to wait to do this until after Haddocks build? + -- otherwise, we could have a race condition and try to build a + -- dependency's haddocks before this finishes atomically $ putTMVar (piResult sbPackageInfo) True when (pcHaddocks /= Don'tBuild && not (null $ sdModules $ ppDesc $ piPlan sbPackageInfo)) $ do