From 14e57cb285571208c5f88f0eaf500b1e7859ef04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Fri, 2 Feb 2024 16:49:38 -0300 Subject: [PATCH] chore: fix bb wasm build when using remote cache (#4397) Build was succeeding but tests failed with: ``` ENOENT: no such file or directory, open '/aztec-packages/barretenberg/ts/dest/node/barretenberg_wasm/fetch_code/node/../../barretenberg-threads.wasm' ``` With this change everything now works as expected. Thanks @spalladino for the fix! --- barretenberg/bootstrap_cache.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barretenberg/bootstrap_cache.sh b/barretenberg/bootstrap_cache.sh index daa4abfc57a..71e081f77e8 100755 --- a/barretenberg/bootstrap_cache.sh +++ b/barretenberg/bootstrap_cache.sh @@ -10,4 +10,4 @@ extract_repo bb.js \ /usr/src/barretenberg/cpp/build-wasm-threads/bin ./cpp/build-wasm-threads echo -e "\033[1mBuilding ESM bb.ts...\033[0m" -(cd ts && ./bootstrap.sh esm) +(cd ts && SKIP_CPP_BUILD=1 ./scripts/build_wasm.sh && ./bootstrap.sh esm)