From c7b92db72abd3cd31820938ea555189fdfcab778 Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Wed, 21 Jan 2026 02:05:33 -0800 Subject: [PATCH] Hopefully avoid copying git ignored stuff to Nix store --- tests/src/TestLib/NixEnvironmentContext.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/TestLib/NixEnvironmentContext.hs b/tests/src/TestLib/NixEnvironmentContext.hs index 5bcfdda..aa4a699 100644 --- a/tests/src/TestLib/NixEnvironmentContext.hs +++ b/tests/src/TestLib/NixEnvironmentContext.hs @@ -56,7 +56,7 @@ introduceNixEnvironment kernels otherConfig label = introduceWith' (defaultNodeO let nixEnv = NixEnvironment { nixEnvironmentChannels = [ - NixSrcPath "codedown" [i|builtins.fetchTree { type = "path"; path = "#{rootDir}"; }|] + NixSrcPath "codedown" [i|builtins.fetchGit { url = "file://#{rootDir}"; }|] , nixpkgsSrcSpec ] , nixEnvironmentKernels = kernels @@ -80,7 +80,7 @@ introduceNixEnvironment kernels otherConfig label = introduceWith' (defaultNodeO , "--impure" -- , "--include", rootDir , "--option", "restrict-eval", "true" - , "--option", "allowed-uris", L.unwords ["path:" <> rootDir, nixpkgsUri] + , "--option", "allowed-uris", L.unwords ["git+file://" <> rootDir <> "?exportIgnore=1", nixpkgsUri] , "--expr", T.unpack rendered , "-o", linkPath ]