This commit is contained in:
parent
43a2245b65
commit
e70cbb0f26
@ -11,8 +11,12 @@ fi
|
|||||||
|
|
||||||
CURRENT_REPLACEMENTS=$(go mod edit --json | jq -r '.Replace[] | "\(.Old.Path) \(.New.Path)"')
|
CURRENT_REPLACEMENTS=$(go mod edit --json | jq -r '.Replace[] | "\(.Old.Path) \(.New.Path)"')
|
||||||
|
|
||||||
echo "github.com/cerc-io/plugeth-statediff=${PLUGETH_STATEDIFF_DIR}"
|
grep 'github.com/cerc-io/plugeth-statediff' go.mod >/dev/null
|
||||||
go mod edit --replace "github.com/cerc-io/plugeth-statediff=${PLUGETH_STATEDIFF_DIR}"
|
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
|
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)
|
orig=$(echo $r | cut -d'=' -f1)
|
||||||
rep=$(echo $r | cut -d'=' -f2 | cut -d'@' -f1)
|
rep=$(echo $r | cut -d'=' -f2 | cut -d'@' -f1)
|
||||||
|
Loading…
Reference in New Issue
Block a user