Add script for updating go.mod to use local plugeth-statediff #3

Merged
roysc merged 5 commits from telackey/ci into main 2023-09-27 07:48:33 +00:00
Member
❯ scripts/update-mod.sh ../plugeth-statediff dumpdiff-geth/
github.com/cerc-io/eth-testing=git.vdb.to/cerc-io/eth-testing@v0.3.1

❯ scripts/update-mod.sh ../plugeth-statediff dumpdiff-plugeth
github.com/cerc-io/plugeth-statediff=/home/telackey/cerc/plugeth-statediff
github.com/cerc-io/eth-iterator-utils=git.vdb.to/cerc-io/eth-iterator-utils@v0.1.2
github.com/cerc-io/eth-testing=git.vdb.to/cerc-io/eth-testing@v0.3.1
github.com/ethereum/go-ethereum=git.vdb.to/cerc-io/plugeth@v0.0.0-20230808125822-691dc334fab1
github.com/openrelayxyz/plugeth-utils=git.vdb.to/cerc-io/plugeth-utils@v0.0.0-20230706160122-cd41de354c46

❯ scripts/update-mod.sh ../plugeth-statediff dumpdiff-plugeth-parallel/
github.com/cerc-io/plugeth-statediff=/home/telackey/cerc/plugeth-statediff
github.com/cerc-io/eth-iterator-utils=git.vdb.to/cerc-io/eth-iterator-utils@v0.1.2
github.com/cerc-io/eth-testing=git.vdb.to/cerc-io/eth-testing@v0.3.1
github.com/ethereum/go-ethereum=git.vdb.to/cerc-io/plugeth@v0.0.0-20230808125822-691dc334fab1
github.com/openrelayxyz/plugeth-utils=git.vdb.to/cerc-io/plugeth-utils@v0.0.0-20230706160122-cd41de354c46
``` ❯ scripts/update-mod.sh ../plugeth-statediff dumpdiff-geth/ github.com/cerc-io/eth-testing=git.vdb.to/cerc-io/eth-testing@v0.3.1 ❯ scripts/update-mod.sh ../plugeth-statediff dumpdiff-plugeth github.com/cerc-io/plugeth-statediff=/home/telackey/cerc/plugeth-statediff github.com/cerc-io/eth-iterator-utils=git.vdb.to/cerc-io/eth-iterator-utils@v0.1.2 github.com/cerc-io/eth-testing=git.vdb.to/cerc-io/eth-testing@v0.3.1 github.com/ethereum/go-ethereum=git.vdb.to/cerc-io/plugeth@v0.0.0-20230808125822-691dc334fab1 github.com/openrelayxyz/plugeth-utils=git.vdb.to/cerc-io/plugeth-utils@v0.0.0-20230706160122-cd41de354c46 ❯ scripts/update-mod.sh ../plugeth-statediff dumpdiff-plugeth-parallel/ github.com/cerc-io/plugeth-statediff=/home/telackey/cerc/plugeth-statediff github.com/cerc-io/eth-iterator-utils=git.vdb.to/cerc-io/eth-iterator-utils@v0.1.2 github.com/cerc-io/eth-testing=git.vdb.to/cerc-io/eth-testing@v0.3.1 github.com/ethereum/go-ethereum=git.vdb.to/cerc-io/plugeth@v0.0.0-20230808125822-691dc334fab1 github.com/openrelayxyz/plugeth-utils=git.vdb.to/cerc-io/plugeth-utils@v0.0.0-20230706160122-cd41de354c46 ```
telackey added 2 commits 2023-09-27 01:13:11 +00:00
Add clean
All checks were successful
Test / Run unit tests (pull_request) Successful in 12m48s
62e44d36dd
telackey requested review from roysc 2023-09-27 01:13:19 +00:00
telackey self-assigned this 2023-09-27 01:13:26 +00:00
telackey added 1 commit 2023-09-27 01:28:26 +00:00
More verbose output
All checks were successful
Test / Run unit tests (pull_request) Successful in 12m49s
43a2245b65
telackey added 1 commit 2023-09-27 02:22:07 +00:00
Extra check.
All checks were successful
Test / Run unit tests (pull_request) Successful in 12m30s
e70cbb0f26
telackey changed title from Add script for using local plugeth-statediff to Add script for updating go.mod to use local plugeth-statediff 2023-09-27 02:25:00 +00:00
roysc approved these changes 2023-09-27 07:28:47 +00:00
roysc left a comment
Owner

LGTM, but I'll add a few tweaks before merging.

LGTM, but I'll add a few tweaks before merging.
@ -0,0 +1,31 @@
#!/bin/sh
PLUGETH_STATEDIFF_DIR=`echo "$(cd "$(dirname "$1")"; pwd)/$(basename "$1")"`
Owner

What does cd dir; pwd do here (vs. just dir)?

What does `cd dir; pwd` do here (vs. just `dir`)?
@ -0,0 +28,4 @@
go mod edit --replace "$r"
done
go mod tidy -e 2>/dev/null
Owner

So that's how you do that!

So that's how you do that!
roysc added 1 commit 2023-09-27 07:32:26 +00:00
tweaks
All checks were successful
Test / Run unit tests (pull_request) Successful in 12m45s
59444de62d
roysc merged commit 353b68c395 into main 2023-09-27 07:48:33 +00:00
roysc deleted branch telackey/ci 2023-09-27 07:48:33 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/eth-statediff-compliance#3
No description provided.