diff --git a/test/cabal-simple/default.nix b/test/cabal-simple/default.nix index c98578cfe..8e1af7e40 100644 --- a/test/cabal-simple/default.nix +++ b/test/cabal-simple/default.nix @@ -33,7 +33,7 @@ in recurseIntoAttrs { test-shell = (project.shellFor { tools = { cabal = { cabalProjectLocal = builtins.readFile ../cabal.project.local; }; - hoogle = { cabalProjectLocal = builtins.readFile ../cabal.project.local; }; + hoogle = { cabalProjectLocal = builtins.readFile ../cabal.project.local; index-state = "2024-10-26T00:00:00Z"; }; }; withHoogle = true; }).overrideAttrs (_: _: { diff --git a/test/shell-for-setup-deps/default.nix b/test/shell-for-setup-deps/default.nix index 6bf721437..6ee5f6e72 100644 --- a/test/shell-for-setup-deps/default.nix +++ b/test/shell-for-setup-deps/default.nix @@ -10,7 +10,7 @@ let }; env = project.shellFor { - tools.hoogle = { cabalProjectLocal = builtins.readFile ../cabal.project.local; }; + tools.hoogle = { cabalProjectLocal = builtins.readFile ../cabal.project.local; index-state = "2024-10-26T00:00:00Z"; }; withHoogle = true; }; diff --git a/test/shell-for/default.nix b/test/shell-for/default.nix index a090c83f9..4c26839c8 100644 --- a/test/shell-for/default.nix +++ b/test/shell-for/default.nix @@ -20,7 +20,10 @@ let packages = ps: with ps; [ pkga pkgb ]; # This adds cabal-install to the shell, which helps tests because # they use a nix-shell --pure. Normally you would BYO cabal-install. - tools = { cabal = { cabalProjectLocal = builtins.readFile ../cabal.project.local; }; }; + tools = { + cabal.cabalProjectLocal = builtins.readFile ../cabal.project.local; + hoogle.index-state = "2024-10-26T00:00:00Z"; + }; exactDeps = true; # Avoid duplicate package issues when runghc looks for packages packageSetupDeps = false; @@ -31,7 +34,10 @@ let packages = ps: with ps; [ pkga ]; # This adds cabal-install to the shell, which helps tests because # they use a nix-shell --pure. Normally you would BYO cabal-install. - tools = { cabal = { cabalProjectLocal = builtins.readFile ../cabal.project.local; }; }; + tools = { + cabal.cabalProjectLocal = builtins.readFile ../cabal.project.local; + hoogle.index-state = "2024-10-26T00:00:00Z"; + }; exactDeps = true; # Avoid duplicate package issues when runghc looks for packages packageSetupDeps = false; @@ -43,7 +49,10 @@ let # packages = ps: with ps; [ pkga pkgb ]; # This adds cabal-install to the shell, which helps tests because # they use a nix-shell --pure. Normally you would BYO cabal-install. - tools = { cabal = { cabalProjectLocal = builtins.readFile ../cabal.project.local; }; }; + tools = { + cabal.cabalProjectLocal = builtins.readFile ../cabal.project.local; + hoogle.index-state = "2024-10-26T00:00:00Z"; + }; # Avoid duplicate package issues when runghc looks for packages packageSetupDeps = false; };