Skip to content

Commit 41d7316

Browse files
authored
Fix warning message for checkPhase (#835)
1 parent ff5ab39 commit 41d7316

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/comp-builder.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,6 @@ let
279279
runHook postBuild
280280
'';
281281

282-
checkPhase = "notice: Tests are only executed by building the .run sub-derivation of this component.";
283-
284282
# Note: Cabal does *not* copy test executables during the `install` phase.
285283
#
286284
# Note 2: if a package contains multiple libs (lib + sublibs) SETUP register will generate a
@@ -363,6 +361,8 @@ let
363361
runHook postInstall
364362
'' + (lib.optionalString keepSource ''
365363
rm -rf dist
364+
'') + (lib.optionalString (haskellLib.isTest componentId) ''
365+
echo The test ${package.identifier.name}.components.tests.${componentId.cname} was built. To run the test build ${package.identifier.name}.checks.${componentId.cname}.
366366
'');
367367

368368
shellHook = ''

0 commit comments

Comments
 (0)