From 638c99fdba0a56c610ca35a23742bbd70e7bc511 Mon Sep 17 00:00:00 2001 From: Matt Bierner <12821956+mjbvz@users.noreply.github.com> Date: Thu, 30 Apr 2026 20:55:37 -0700 Subject: [PATCH] Increase buffer size for hygiene check I occasional see our precommit checks fail due to buffer size issues. This should fix that --- build/hygiene.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/hygiene.ts b/build/hygiene.ts index 2418172b656..79ea0c06048 100644 --- a/build/hygiene.ts +++ b/build/hygiene.ts @@ -253,7 +253,7 @@ function createGitIndexVinyls(paths: string[]): Promise { cp.exec( process.platform === 'win32' ? `git show :${relativePath}` : `git show ':${relativePath}'`, - { maxBuffer: stat.size, encoding: 'buffer' }, + { maxBuffer: Math.max(stat.size * 2, 1024 * 1024), encoding: 'buffer' }, (err, out) => { if (err) { return e(err);