Skip to content

Commit 0ce6ba9

Browse files
committed
Improve error message for 'new-test' command
Suggest adding '--enable-tests'. [ci skip]
1 parent 11047e4 commit 0ce6ba9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cabal-install/Distribution/Client/CmdErrorMessages.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ renderTargetProblemNoneEnabled verb targetSelector targets =
305305
++ plural (listPlural targets') " is " " are "
306306
++ "not available because the solver did not find a plan that "
307307
++ "included the " ++ renderOptionalStanza Plural stanza
308+
++ ". Force the solver to enable this for all packages by adding the "
309+
++ "line 'tests: True' to the 'cabal.project.local' file."
308310
(TargetNotBuildable, _) ->
309311
renderListCommaAnd
310312
[ "the " ++ showComponentName availableTargetComponentName

0 commit comments

Comments
 (0)