Extra check.
All checks were successful
Test / Run unit tests (pull_request) Successful in 12m30s

This commit is contained in:
Thomas E Lackey 2023-09-26 21:22:01 -05:00
parent 43a2245b65
commit e70cbb0f26

View File

@ -11,8 +11,12 @@ fi
CURRENT_REPLACEMENTS=$(go mod edit --json | jq -r '.Replace[] | "\(.Old.Path) \(.New.Path)"')
grep 'github.com/cerc-io/plugeth-statediff' go.mod >/dev/null
if [ $? -eq 0 ]; then
echo "github.com/cerc-io/plugeth-statediff=${PLUGETH_STATEDIFF_DIR}"
go mod edit --replace "github.com/cerc-io/plugeth-statediff=${PLUGETH_STATEDIFF_DIR}"
fi
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)
rep=$(echo $r | cut -d'=' -f2 | cut -d'@' -f1)