From cec921f15cb8c326fe81f6e32aebec1516ca36e6 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Wed, 21 Aug 2019 00:08:54 +0200 Subject: Implement cabal v2 backpack unit workaround See https://github.com/haskell/cabal/issues/6201 for details about the bug --- lib/Distribution/Helper.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Distribution/Helper.hs b/lib/Distribution/Helper.hs index 55bfbf7..e46293d 100644 --- a/lib/Distribution/Helper.hs +++ b/lib/Distribution/Helper.hs @@ -508,7 +508,11 @@ buildProjectTarget qe mu stage = do SCV2 -> do targets <- return $ case mu of Nothing -> ["all"] - Just Unit{uImpl} -> uiV2Components uImpl + Just Unit{uImpl} -> concat + [ if uiV2OnlyDependencies uImpl + then ["--only-dependencies"] else [] + , uiV2Components uImpl + ] case qeProjLoc of ProjLocV2File {plCabalProjectFile} -> [ "--project-file="++plCabalProjectFile -- cgit v1.2.3