Skip to content

Commit

Permalink
fix: bootstrap.sh (#1337)
Browse files Browse the repository at this point in the history
# Description

When running bootstrap.sh from a freshly cloned repository the bootstrap
fails because generating the noir contract types fails. This happens
because for the typegen to succeed we need to build foundation and
  • Loading branch information
benesjan authored Aug 1, 2023
1 parent 45c1f51 commit 0f71bfc
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ fi

circuits/cpp/bootstrap.sh
l1-contracts/bootstrap.sh
(cd yarn-project/noir-contracts && ./bootstrap.sh)

if [ "$(uname)" = "Darwin" ]; then
# works around https://github.com/AztecProtocol/aztec3-packages/issues/158
Expand All @@ -46,9 +45,22 @@ else
fi
nvm install

# Until we push .yarn/cache, we still need to install.
cd yarn-project
yarn install --immutable

# Build the necessary dependencies for noir contracts typegen.
for DIR in foundation noir-compiler; do
echo "Building $DIR..."
cd $DIR
yarn build
cd ..
done

cd noir-contracts && ./bootstrap.sh

# Until we push .yarn/cache, we still need to install.
cd ../
yarn
# We do not need to build individual packages, yarn build will build the root tsconfig.json
yarn build
yarn --cwd circuits.js remake-bindings
Expand Down

0 comments on commit 0f71bfc

Please sign in to comment.