Skip to content

Commit ab2f56a

Browse files
committed
pretty up a couple of warnings
1 parent 0e7fe05 commit ab2f56a

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/Stack/Build/Execute.hs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -970,13 +970,11 @@ withSingleContext runInBase ActionContext {..} ExecuteEnv {..} task@Task {..} md
970970
warnCustomNoDeps =
971971
case (taskType, packageBuildType package) of
972972
(TTFiles lp Local, Just C.Custom) | lpWanted lp -> do
973-
$logWarn $ T.pack $ concat
974-
[ "Package "
975-
, packageNameString $ packageName package
976-
, " uses a custom Cabal build, but does not use a custom-setup stanza"
973+
$prettyWarnL $
974+
[ flow "Package"
975+
, display $ packageName package
976+
, flow "uses a custom Cabal build, but does not use a custom-setup stanza"
977977
]
978-
$logWarn "Using the explicit setup deps approach based on configuration"
979-
$logWarn "Strongly recommend fixing the package's cabal file"
980978
_ -> return ()
981979

982980
getPackageArgs :: Path Abs Dir -> RIO env [String]
@@ -992,7 +990,7 @@ withSingleContext runInBase ActionContext {..} ExecuteEnv {..} task@Task {..} md
992990
case mdeps of
993991
Just x -> return x
994992
Nothing -> do
995-
$logWarn "In getPackageArgs: custom-setup in use, but no dependency map present"
993+
$prettyWarn "In getPackageArgs: custom-setup in use, but no dependency map present"
996994
return Map.empty
997995
matchedDeps <- forM (Map.toList customSetupDeps) $ \(name, range) -> do
998996
let matches (PackageIdentifier name' version) =

0 commit comments

Comments
 (0)