From b221139aed0dfcd3d4ddddb828d0d49f3475344c Mon Sep 17 00:00:00 2001 From: TomAFrench Date: Wed, 22 May 2024 16:56:40 +0000 Subject: [PATCH 1/2] chore: automatically clear any unwanted directories in `test_programs` --- test_programs/rebuild.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test_programs/rebuild.sh b/test_programs/rebuild.sh index 4733bad10c3..cfc6479febf 100755 --- a/test_programs/rebuild.sh +++ b/test_programs/rebuild.sh @@ -8,6 +8,14 @@ process_dir() { local current_dir=$2 local dir_name=$(basename "$dir") + if [[ ! -f "$dir/Nargo.toml" ]]; then + # This directory isn't a proper test but just hold some stale build artifacts + # We then delete it and carry on. + rm -rf $dir + return 0 + fi + + if [[ ! -d "$current_dir/acir_artifacts/$dir_name" ]]; then mkdir -p $current_dir/acir_artifacts/$dir_name fi From f299d49f0c6c7c8e59eb36ca4873075025136f7d Mon Sep 17 00:00:00 2001 From: TomAFrench Date: Wed, 22 May 2024 23:07:23 +0000 Subject: [PATCH 2/2] chore: fmt --- tooling/nargo_cli/src/cli/info_cmd.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tooling/nargo_cli/src/cli/info_cmd.rs b/tooling/nargo_cli/src/cli/info_cmd.rs index 6c0709e7611..7c50e907dc9 100644 --- a/tooling/nargo_cli/src/cli/info_cmd.rs +++ b/tooling/nargo_cli/src/cli/info_cmd.rs @@ -102,7 +102,8 @@ pub(crate) fn run(args: InfoCommand, config: NargoConfig) -> Result<(), CliError } else { // Otherwise print human-readable table. if !info_report.programs.is_empty() { - let mut program_table = table!([Fm->"Package", Fm->"Function", Fm->"Expression Width", Fm->"ACIR Opcodes"]); + let mut program_table = + table!([Fm->"Package", Fm->"Function", Fm->"Expression Width", Fm->"ACIR Opcodes"]); for program_info in info_report.programs { let program_rows: Vec = program_info.into();