From 476c76b54eeb80bae0f425a562ab5fdc84534221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Wed, 6 Oct 2021 18:32:06 +0200 Subject: [PATCH] compileFull(): Use find instead of /*/*, which requires ignoring missing files --- scripts/common_cmdline.sh | 2 +- test/cmdlineTests.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/common_cmdline.sh b/scripts/common_cmdline.sh index 0854b5f04..15d93f562 100644 --- a/scripts/common_cmdline.sh +++ b/scripts/common_cmdline.sh @@ -20,7 +20,7 @@ # ------------------------------------------------------------------------------ YULARGS=(--strict-assembly) -FULLARGS=(--optimize --ignore-missing --combined-json "abi,asm,ast,bin,bin-runtime,devdoc,hashes,metadata,opcodes,srcmap,srcmap-runtime,userdoc") +FULLARGS=(--optimize --combined-json "abi,asm,ast,bin,bin-runtime,devdoc,hashes,metadata,opcodes,srcmap,srcmap-runtime,userdoc") OLDARGS=(--optimize --combined-json "abi,asm,ast,bin,bin-runtime,devdoc,interface,metadata,opcodes,srcmap,srcmap-runtime,userdoc") function compileFull() { diff --git a/test/cmdlineTests.sh b/test/cmdlineTests.sh index c413eef0f..1304da8af 100755 --- a/test/cmdlineTests.sh +++ b/test/cmdlineTests.sh @@ -424,7 +424,8 @@ printTask "Compiling various other contracts and libraries..." do echo " - $dir" cd "$dir" - compileFull --expect-warnings ./*.sol ./*/*.sol + # shellcheck disable=SC2046 # These file names are not supposed to contain spaces. + compileFull --expect-warnings $(find . -name '*.sol') cd .. done )