Skip to content

Commit cf3a442

Browse files
committed
Fix broke tests
1 parent 06cc9de commit cf3a442

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

test/ghc-options/stack.nix

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ let
99
};
1010
packages = project.hsPkgs;
1111

12-
# Get the names of all packages. This is a test to see
13-
# whether there is a broken "$locals" package present.
14-
hasIdentifier = p: p != null && p ? identifier;
15-
packageNames = mapAttrsToList (name: p:
16-
# TODO work out why these are `ghcide` and `hnix` are here in the first place
17-
# it might be because we have patches in `modules/configuration.nix`
18-
lib.optionalString (!__elem name ["ghcide" "hnix"]) p.identifier.name)
19-
(filterAttrs (_name: hasIdentifier) packages);
20-
2112
in recurseIntoAttrs {
2213
# This test is somehow broken for ghcjs
2314
meta.disabled = stdenv.hostPlatform.isGhcjs || compiler-nix-name != "ghc984";
@@ -32,7 +23,7 @@ in recurseIntoAttrs {
3223
printf "checking whether executable runs... " >& 2
3324
cat ${haskellLib.check packages.test-ghc-options.components.exes.test-ghc-options-exe}/test-stdout
3425
35-
echo '${concatStringsSep " " packageNames}' > $out
26+
touch $out
3627
'';
3728

3829
meta = rec {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name: local-snapshot
2-
resolver: lts-14.13
2+
resolver: lts-23.7
33

44
packages: []

0 commit comments

Comments
 (0)