From f33d1f1cc4cd02aec63dde5ed9a374060d597a9d Mon Sep 17 00:00:00 2001 From: Jack T Date: Wed, 1 Jan 2025 01:38:34 -0800 Subject: [PATCH] Ignore .git directory when building VfsSnapshot in build script (#1002) --- build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.rs b/build.rs index e423b61b..64b5bd94 100644 --- a/build.rs +++ b/build.rs @@ -20,6 +20,10 @@ fn snapshot_from_fs_path(path: &Path) -> io::Result { let file_name = entry.file_name().to_str().unwrap().to_owned(); + if file_name.starts_with(".git") { + continue; + } + // We can skip any TestEZ test files since they aren't necessary for // the plugin to run. if file_name.ends_with(".spec.lua") || file_name.ends_with(".spec.luau") {