Skip to content

Commit

Permalink
using nargo from /noir/target/release
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 4, 2024
1 parent c6f4b7b commit b464363
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yarn-project/run_nargo_fmt.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

nargo_executable="$(git rev-parse --show-toplevel)/noir/target/release/nargo"

# Find all Nargo.toml files and run 'nargo fmt'
find . -name "Nargo.toml" | while read -r file; do
# Extract the directory from the file path
Expand All @@ -9,7 +11,7 @@ find . -name "Nargo.toml" | while read -r file; do
cd "$dir" || exit

# Run 'nargo fmt' in the directory and pass in the input param 1
nargo fmt $1
"$nargo_executable" fmt $1

# Change back to the original directory
cd - > /dev/null
Expand Down

0 comments on commit b464363

Please sign in to comment.