Skip to content

Commit 15df6e5

Browse files
alarso16JonathanOppenheimer
authored andcommitted
ci: update taskfile for rlpgen (#1214)
1 parent cdac84d commit 15df6e5

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

Taskfile.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ tasks:
6262
- task: generate-mocks
6363
- task: check-clean-branch
6464

65+
check-generate-rlp:
66+
desc: Checks that generated rlp files are up-to-date (requires a clean git working tree)
67+
cmds:
68+
- task: generate-rlp
69+
- task: check-clean-branch
70+
6571
check-go-mod-tidy:
6672
desc: Checks that go.mod and go.sum are up-to-date (requires a clean git working tree)
6773
cmds:
@@ -83,6 +89,12 @@ tasks:
8389
cmds:
8490
- cmd: grep -lr -E '^// Code generated by MockGen\. DO NOT EDIT\.$' . | xargs -r rm
8591
- cmd: go generate -run "go.uber.org/mock/mockgen" ./...
92+
93+
generate-rlp:
94+
desc: Generates rlp files
95+
cmds:
96+
- cmd: grep -lr -E '^// Code generated by rlpgen\. DO NOT EDIT.\.$' . | xargs -r rm
97+
- cmd: go generate -run "github.com/ava-labs/libevm/rlp/rlpgen" ./...
8698

8799
install-avalanchego-release:
88100
desc: Download and install AvalancheGo release binary for testing, with fallback to building from source
@@ -100,6 +112,7 @@ tasks:
100112
- shellcheck
101113
- check-generate-codec
102114
- check-generate-mocks
115+
- check-generate-rlp
103116

104117
lint-all-ci:
105118
desc: Runs all lint checks one-by-one
@@ -109,6 +122,7 @@ tasks:
109122
- task: shellcheck
110123
- task: check-generate-codec
111124
- task: check-generate-mocks
125+
- task: check-generate-rlp
112126

113127
setup-contracts:
114128
desc: Set up contracts by installing NPM dependencies, cleaning Hardhat cache, and compiling contracts

plugin/evm/customtypes/gen_header_serializable_rlp.go

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)