From 43a2245b650c57cb333efd6bbaab9acb19506bb4 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 26 Sep 2023 20:28:21 -0500 Subject: [PATCH] More verbose output --- scripts/update-mod.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/update-mod.sh b/scripts/update-mod.sh index 0753dfb..1ad6ff7 100755 --- a/scripts/update-mod.sh +++ b/scripts/update-mod.sh @@ -11,6 +11,7 @@ fi CURRENT_REPLACEMENTS=$(go mod edit --json | jq -r '.Replace[] | "\(.Old.Path) \(.New.Path)"') +echo "github.com/cerc-io/plugeth-statediff=${PLUGETH_STATEDIFF_DIR}" go mod edit --replace "github.com/cerc-io/plugeth-statediff=${PLUGETH_STATEDIFF_DIR}" for r in `go mod edit --json ${PLUGETH_STATEDIFF_DIR}/go.mod | jq -r '.Replace[] | "\(.Old.Path)=\(.New.Path)@\(.New.Version)"'`; do orig=$(echo $r | cut -d'=' -f1) @@ -19,6 +20,7 @@ for r in `go mod edit --json ${PLUGETH_STATEDIFF_DIR}/go.mod | jq -r '.Replace[] if [ $? -ne 0 ]; then continue; fi + echo "$r" go mod edit --replace "$r" done