Skip to content

Commit

Permalink
Fix test-only failure for ghcjs
Browse files Browse the repository at this point in the history
The new `default-setup-ghcjs` has a longer name than `default-setup` and that causes the word `do` to wrap onto the next line.

The expected error now looks like this for ghcjs:

```
Error: default-setup-ghcjs: No executables and no library found. Nothing to
do.
```
  • Loading branch information
hamishmack committed Apr 4, 2024
1 parent 7e140fc commit a8c80df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/comp-builder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ let
# we assume that if the SETUP_HS command fails and the following line was found in the error
# log, that it was the only error. Hence if we do _not_ find the line, grep will fail and this derivation
# will be marked as failure.
cat $SETUP_ERR | grep 'No executables and no library found\. Nothing to do\.'
cat $SETUP_ERR | grep 'No executables and no library found\. Nothing to'
fi
''}
${lib.optionalString (haskellLib.isLibrary componentId) ''
Expand Down

0 comments on commit a8c80df

Please sign in to comment.