From 7a023a99ca8e37f3114bab4d6298ecc3cef33b9c Mon Sep 17 00:00:00 2001 From: V Date: Sun, 2 Jul 2023 19:26:10 +0200 Subject: [PATCH] Make gitignoreSourceWith short-circuit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This has been broken since its introduction due to a typo. `lib.cleanSourceWith` uses the field `origSrc` to store the initial path prior to processing— which is presumably what the author intended. With this change, `gitignoreSource (lib.sources.trace /path/to/repo)` no longer incorrectly prints ignored paths. Change-Id: I475cee9576dd9969f5fe5127d937bc7fb480eb22 --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index ec64995..37e87db 100644 --- a/default.nix +++ b/default.nix @@ -23,7 +23,7 @@ let gitignoreSourceWith = { path }: lib.cleanSourceWith { name = "source"; - filter = find-files.gitignoreFilterWith { basePath = path.origPath or path; }; + filter = find-files.gitignoreFilterWith { basePath = path.origSrc or path; }; src = path; };