-
Notifications
You must be signed in to change notification settings - Fork 194
refactor(l1): migrate tooling workspace to ethrex-tooling repo #6487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
681a5b3
0b2d6d6
8684be2
4201089
b00af96
7b4a796
54f2ca8
e1b6df3
b3f0064
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Local development overrides for cross-repo work with ethrex-tooling. | ||
| # Append this section to your .cargo/config.toml to use local ethrex-tooling sources | ||
| # instead of git-fetched versions. Adjust paths to match your local layout. | ||
|
|
||
| [patch."https://github.com/lambdaclass/ethrex-tooling"] | ||
| ethrex-monitor = { path = "../ethrex-tooling/monitor" } | ||
| ethrex-repl = { path = "../ethrex-tooling/repl" } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -24,7 +24,6 @@ members = [ | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| "crates/vm/levm", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "crates/vm/levm/runner", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "crates/common/config", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "tooling/repl", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "test", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| exclude = ["crates/vm/levm/bench/revm_comparison"] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -77,8 +76,8 @@ ethrex-guest-program = { path = "./crates/guest-program", default-features = fal | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ethrex-storage-rollup = { path = "./crates/l2/storage" } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ethrex = { path = "./cmd/ethrex" } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ethrex-l2-rpc = { path = "./crates/l2/networking/rpc" } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ethrex-monitor = { path = "./tooling/monitor" } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ethrex-repl = { path = "./tooling/repl" } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ethrex-monitor = { git = "https://github.com/lambdaclass/ethrex-tooling", branch = "main" } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ethrex-repl = { git = "https://github.com/lambdaclass/ethrex-tooling", branch = "main" } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+79
to
+80
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ethrex-monitor = { git = "https://github.com/lambdaclass/ethrex-tooling", branch = "main" } | |
| ethrex-repl = { git = "https://github.com/lambdaclass/ethrex-tooling", branch = "main" } | |
| ethrex-monitor = { git = "https://github.com/lambdaclass/ethrex-tooling", rev = "<commit sha>" } | |
| ethrex-repl = { git = "https://github.com/lambdaclass/ethrex-tooling", rev = "<commit sha>" } |
Copilot
AI
Apr 15, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds a global patch for the https://github.com/lambdaclass/ethrex git source. That patch will affect any crate in the dependency graph coming from that git source (including indirect uses outside tooling), which can make debugging dependency resolution harder when unexpected overrides happen. Consider limiting the blast radius by either (a) moving this patch behind a documented opt-in workflow (e.g., .cargo/config.toml for local dev), or (b) ensuring ethrex-tooling does not pull ethrex crates via git for normal builds so the patch is unnecessary in production/CI.
| # Ensure ethrex-tooling's transitive deps resolve to local workspace crates | |
| # instead of fetching a second copy from git (avoids "two versions of the same crate" errors). | |
| [patch."https://github.com/lambdaclass/ethrex"] | |
| ethrex = { path = "./cmd/ethrex" } | |
| ethrex-blockchain = { path = "./crates/blockchain" } | |
| ethrex-common = { path = "./crates/common" } | |
| ethrex-config = { path = "./crates/common/config" } | |
| ethrex-crypto = { path = "./crates/common/crypto" } | |
| ethrex-guest-program = { path = "./crates/guest-program" } | |
| ethrex-l2 = { path = "./crates/l2" } | |
| ethrex-l2-common = { path = "./crates/l2/common" } | |
| ethrex-l2-prover = { path = "./crates/l2/prover" } | |
| ethrex-l2-rpc = { path = "./crates/l2/networking/rpc" } | |
| ethrex-levm = { path = "./crates/vm/levm" } | |
| ethrex-p2p = { path = "./crates/networking/p2p" } | |
| ethrex-prover = { path = "./crates/prover" } | |
| ethrex-rlp = { path = "./crates/common/rlp" } | |
| ethrex-rpc = { path = "./crates/networking/rpc" } | |
| ethrex-sdk = { path = "./crates/l2/sdk" } | |
| ethrex-storage = { path = "./crates/storage" } | |
| ethrex-storage-rollup = { path = "./crates/l2/storage" } | |
| ethrex-trie = { path = "./crates/common/trie" } | |
| ethrex-vm = { path = "./crates/vm" } | |
| # Do not commit a workspace-wide patch for the ethrex git source here. | |
| # If local development needs path overrides to avoid duplicate git/workspace crates, | |
| # configure them as an explicit opt-in in `.cargo/config.toml` instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran make lint and it's working
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This checkout relies on the external repository’s default branch. Since the PR description implies using the
mainbranch, it would be more robust to setref: mainexplicitly (and consider pinning to a specific commit SHA for CI stability). Otherwise, a default-branch rename or unexpected default-branch change inethrex-toolingcould break CI without any change in this repo.