Skip to content

Commit 3dc38d1

Browse files
committed
chore(nix): exclude empty submodule directories in nix-filter to reduce cache misses in Garnix CI
Signed-off-by: Viktor Fedorov <[email protected]>
1 parent af6958d commit 3dc38d1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

nix/unwrapped.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,20 @@ assert lib.assertMsg (
3838
../docs/COPYING.md
3939
../CMakeLists.txt
4040
];
41+
42+
# Sometimes these directories (submodules) exist but are empty instead of being absent, which can cause cache misses in Garnix CI.
43+
# Maybe we don't know the entire truth...
44+
exclude = [
45+
"libraries/cmark"
46+
"libraries/extra-cmake-modules"
47+
"libraries/quazip"
48+
"libraries/tomlplusplus"
49+
"libraries/zlib"
50+
"libraries/libnbtplusplus"
51+
];
4152
};
4253

4354
postUnpack = ''
44-
rm -rf source/libraries/libnbtplusplus
4555
ln -s ${libnbtplusplus} source/libraries/libnbtplusplus
4656
'';
4757

0 commit comments

Comments
 (0)