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

chore: rename Go module as github.com/ava-labs/libevm #60

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

ARR4N
Copy link
Collaborator

@ARR4N ARR4N commented Oct 12, 2024

Why this should be merged

Completes renaming of the Go module to github.com/ava-labs/libevm to no longer clash with the true github.com/ethereum/go-ethereum and require a replace directive.

How this works

The merge commit d6d53f9 merges the renamed-go-module branch, resolves conflicts (imports only) and also renames all other imports using the same sed regex/replace as the auto-renaming workflow. Completing the import renaming in a single commit made it self-contained and able to build and pass all tests.

The other commit makes all necessary CI changes to accomodate for the renaming. Of note, it removes use of the libevm-base tag and instead includes the commit hash in the relevant workflow; this allows for an atomic change of base commit at time of merging.

How this was tested

Renaming of the module is confirmed by inspection of go.mod. Updating all internal import paths is confirmed by an updated linter that blocks modules, guaranteeing that the ethereum/go-ethereum module isn't imported.

The libevm delta workflow can also be inspected to see that the current diff doesn't show any module-name differences, while the diff against main does.

All regular CI (Go build + test) passes as expected.

Merge checklist

@ARR4N ARR4N force-pushed the arr4n/rename-module branch 3 times, most recently from a01599a to 4c8d4bd Compare October 13, 2024 12:08
@ARR4N ARR4N marked this pull request as ready for review October 14, 2024 10:15
@ARR4N ARR4N requested review from a team, darioush, ceyonur and michaelkaplan13 and removed request for a team October 14, 2024 10:15
@ARR4N
Copy link
Collaborator Author

ARR4N commented Oct 16, 2024

Blocked by #61 because a7f08d0 wasn't signed 🤦

Once that's merged, I'll substitute the above commit with a signed one from the updated workflow (e.g. 572b8ab, which is otherwise identical).

github-actions bot and others added 3 commits October 17, 2024 01:49
Workflow: c1fc594f020d23958b641a4e5a856b6e52c49d3bece94b95594864db16c1b0fc on branch main
…34ac16627a1_workflow-c1fc594f020d23958b641a4e5a856b6e52c49d3bece94b95594864db16c1b0fc-main' into arr4n/rename-module
Linter:
- Block imports of `ethereum/go-ethereum` upstream module
- Disable `goimports` checks on upstream code

Go:
- Update flaky-test regex
- Run flaky and non-flaky tests in different steps as this makes it easier to spot incorrect regex

Upstream delta:
- Use env var in workflow instead of `libevm-base` tag -> base changes atomically with the update commit
@ARR4N
Copy link
Collaborator Author

ARR4N commented Oct 17, 2024

Note that the force push after review was to use a signed commit for the automated renaming. The comparison shows that the push was a no-op with respect to the outcome—the only difference is the new renaming workflow to sign commits (i.e. the reason the push was needed) as reviewed and merged in #61.

@ARR4N ARR4N merged commit 5c66352 into main Oct 17, 2024
3 checks passed
@ARR4N ARR4N deleted the arr4n/rename-module branch October 17, 2024 02:16
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.

2 participants