File tree Expand file tree Collapse file tree
noir-projects/noir-contracts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -233,8 +233,11 @@ function format {
233233function pin-standard-build {
234234 rm -f pinned-standard-contracts.tar.gz
235235 local standard_contracts=$( grep -oP ' (?<=contracts/)[^"]+' Nargo.toml | grep " ^standard/" )
236- build $standard_contracts
236+ build $standard_contracts || { echo_stderr " Build failed; refusing to create tarball. " ; return 1 ; }
237237 local standard_artifacts=$( jq -r ' .[]' standard_contracts.json | sed ' s/$/.json/' )
238+ for a in $standard_artifacts ; do
239+ [ -f " target/$a " ] || { echo_stderr " Missing artifact target/$a ; refusing to create tarball." ; return 1; }
240+ done
238241 echo_stderr " Creating pinned-standard-contracts.tar.gz..."
239242 (cd target && tar czf ../pinned-standard-contracts.tar.gz $standard_artifacts )
240243 echo_stderr " Done. pinned-standard-contracts.tar.gz created. Commit it to pin these artifacts."
You can’t perform that action at this time.
0 commit comments