Skip to content
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

rename: ethereum/go-ethereum -> ava-labs/libevm #681

Merged
merged 4 commits into from
Nov 7, 2024
Merged

Conversation

darioush
Copy link
Collaborator

@darioush darioush commented Nov 6, 2024

Why this should be merged

In golang, the proper way to maintain a forked library is to perform the textual rename of the module to its new (forked) location.

How this works

Unfortunately, depending on both libevm and go-ethereum is not possible (even in transitive dependencies), as this will pull in duplicate symbols with CGO (similar to this issue cosmos/cosmos-sdk#18232, not exactly)
This avalanchego branch performs the same rename and depends on c1ae67c to get rid of the transitive dependency to go-ethereum

How this was tested

CI

@darioush darioush marked this pull request as ready for review November 6, 2024 18:12
@darioush darioush requested review from ceyonur and a team as code owners November 6, 2024 18:12
@darioush darioush requested a review from ARR4N November 6, 2024 18:12
Copy link

@michaelkaplan13 michaelkaplan13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only question is if we should also update the //go:generate directives that reference go-ethereum. I don't think it matters too much either way.

go.mod Show resolved Hide resolved
Copy link
Contributor

@ARR4N ARR4N left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my question about the geth allowlist.

scripts/geth-allowed-packages.txt Show resolved Hide resolved
@darioush darioush merged commit 76724a3 into libevm Nov 7, 2024
6 checks passed
@darioush darioush deleted the libevm-rename branch November 7, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants