From 1c4ebcf2f4aee9c02ebd91497ae6e08a3ebe0982 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Wed, 8 May 2024 21:03:10 +0000 Subject: [PATCH] build: temporarily force local spawn strategy during release builds Temporarily force the local spawn strategy for building during release due to seeing unexpected and yet to be traced failures in the Sass compiler within workers. --- scripts/build-packages-dist.mts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build-packages-dist.mts b/scripts/build-packages-dist.mts index 0bd2212f7afa..51057b6098f9 100755 --- a/scripts/build-packages-dist.mts +++ b/scripts/build-packages-dist.mts @@ -64,7 +64,8 @@ function buildReleasePackages(distPath: string, isSnapshotBuild: boolean): Built // version placeholder is populated in the release output. const stampConfigArg = `--config=${isSnapshotBuild ? 'snapshot-build' : 'release'}`; - exec(`${bazelCmd} build ${stampConfigArg} ${targets.join(' ')}`); + // TODO(josephperrott): Figure out why we can't use workers right now. + exec(`${bazelCmd} build --spawn_strategy=local ${stampConfigArg} ${targets.join(' ')}`); // Delete the distribution directory so that the output is guaranteed to be clean. Re-create // the empty directory so that we can copy the release packages into it later.