From 9b6528205b1d31856859274bc4c3c71d762e53cc Mon Sep 17 00:00:00 2001 From: tringuyenskymavis Date: Tue, 20 Aug 2024 14:37:06 +0700 Subject: [PATCH 1/4] chore: fix dir path --- run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 71a8632..16cde0e 100755 --- a/run.sh +++ b/run.sh @@ -4,7 +4,7 @@ # Check if the commit hash argument is provided if [ -z "$1" ]; then - echo "Usage: bash lib/storage-delta/run.sh [config]" + echo "Usage: bash dependencies/@storage-delta-0.3.1/run.sh [config]" exit 1 fi @@ -153,7 +153,7 @@ for line in "${filesWithPath_old[@]}"; do if [ -n "$output_old" ] && [ -n "$output_new" ]; then echo "Comparing storage layout for $line" - node ./lib/storage-delta/_reporter.js "$output_old" "$output_new" ${line} $OMIT_NEW + node ./dependencies/@storage-delta-0.3.1/_reporter.js "$output_old" "$output_new" ${line} $OMIT_NEW fi ) & From d89a6e497209f4023ff4d897033e3e0698bbb94d Mon Sep 17 00:00:00 2001 From: tringuyenskymavis Date: Wed, 21 Aug 2024 16:03:00 +0700 Subject: [PATCH 2/4] chore: install deps inside .storage_delta_cache --- run.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run.sh b/run.sh index 16cde0e..7ec905d 100755 --- a/run.sh +++ b/run.sh @@ -72,6 +72,9 @@ if [ "$exists" -eq 0 ]; then # Reset to a certain commit git reset --hard "$1" + forge soldeer install + chmod +x ./update-deps.sh + ./update-deps.sh forge install cd "$current_dir" From 7d6f5e912f946624f0d689735683c8da1baf0f6a Mon Sep 17 00:00:00 2001 From: tringuyenskymavis Date: Wed, 21 Aug 2024 16:18:04 +0700 Subject: [PATCH 3/4] chore: check if soldeer exist --- run.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index 7ec905d..06ea8f5 100755 --- a/run.sh +++ b/run.sh @@ -72,9 +72,17 @@ if [ "$exists" -eq 0 ]; then # Reset to a certain commit git reset --hard "$1" - forge soldeer install - chmod +x ./update-deps.sh - ./update-deps.sh + # Check if soldeer.lock exists + if [ -f "soldeer.lock" ]; then + forge soldeer install + fi + + # Check if update-deps.sh exists + if [ -f "soldeer.lock" ]; then + chmod +x ./update-deps.sh + ./update-deps.sh + fi + forge install cd "$current_dir" From 780a90bf9593d2ce28056f95e2f20fec52fb073d Mon Sep 17 00:00:00 2001 From: tringuyenskymavis Date: Wed, 21 Aug 2024 16:22:23 +0700 Subject: [PATCH 4/4] chore: check if update-deps exists --- run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 06ea8f5..234e677 100755 --- a/run.sh +++ b/run.sh @@ -78,7 +78,7 @@ if [ "$exists" -eq 0 ]; then fi # Check if update-deps.sh exists - if [ -f "soldeer.lock" ]; then + if [ -f "update-deps.sh" ]; then chmod +x ./update-deps.sh ./update-deps.sh fi