diff --git a/barretenberg/bootstrap.sh b/barretenberg/bootstrap.sh index 20d827e2cb33..a22d65741d5a 100755 --- a/barretenberg/bootstrap.sh +++ b/barretenberg/bootstrap.sh @@ -42,6 +42,19 @@ case "$cmd" in bench) bench ;; + bootstrap_e2e_hack) + echo "WARNING: This assumes your PR only changes barretenberg and the rest of the repository is unchanged from master." + echo "WARNING: This is only sound if you have not changed VK generation! (or noir-projects VKs will be incorrect)." + echo "WARNING: It builds up until yarn-project and allows end-to-end tests (not boxes/playground/release image etc)." + merge_base=$(git merge-base HEAD origin/master) + for project in noir barretenberg avm-transpiler noir-projects l1-contracts yarn-project ; do + if [ $project == barretenberg ]; then + ../$project/bootstrap.sh # i.e. this script + else + AZTEC_CACHE_COMMIT=$merge_base ../$project/bootstrap.sh + fi + done + ;; *) echo "Unknown command: $cmd" exit 1