Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add cleanup for bb installation #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions noirup
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -e

NARGO_HOME=${NARGO_HOME-"$HOME/.nargo"}
NARGO_BIN_DIR="$NARGO_HOME/bin"
ACVM_BACKEND_BARRETENBERG="$NARGO_HOME/backends/acvm-backend-barretenberg"

main() {
need_cmd git
Expand Down Expand Up @@ -131,6 +132,11 @@ main() {
say "downloading latest nargo to '$NARGO_BIN_DIR'"
ensure curl -# -L $BIN_TARBALL_URL | tar -xzC $NARGO_BIN_DIR

if [[ -d "$ACVM_BACKEND_BARRETENBERG" ]]; then
echo "Cleaning Backend Barretenberg installation directory $ACVM_BACKEND_BARRETENBERG..."
rm -rf "$ACVM_BACKEND_BARRETENBERG" || true
fi

# Prior to v0.3.0, Nargo and the std lib were distributed separated.
ensure rm -rf "$CONFIG_DIR/noir-lang/std"
if [ -d "$NARGO_BIN_DIR/noir-lang" ]; then
Expand Down