File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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) =
You can’t perform that action at this time.
0 commit comments