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

abi: fix abigen issue with make devtools #10091

Merged
merged 1 commit into from
Apr 27, 2024
Merged

abi: fix abigen issue with make devtools #10091

merged 1 commit into from
Apr 27, 2024

Conversation

taratorio
Copy link
Contributor

@taratorio taratorio commented Apr 27, 2024

fixes #7593

it introduced a regression: "fmt" and "reflect" imports were added for all files generated by abigen assuming that they will be used in all cases, however that assumption was wrong for some cases resulting in invalid code being generated (in this case after running make devtools):
Screenshot 2024-04-27 at 10 50 37

@taratorio taratorio changed the title make: fix make devtools (fixes https://github.com/ledgerwatch/erigon/pull/7593) make: fix make devtools (fixes #7593) Apr 27, 2024
@taratorio taratorio changed the title make: fix make devtools (fixes #7593) make: fix make devtools Apr 27, 2024
@taratorio taratorio changed the title make: fix make devtools make: fix abigen issue with make devtools Apr 27, 2024
@taratorio taratorio changed the title make: fix abigen issue with make devtools abi: fix abigen issue with make devtools Apr 27, 2024
@taratorio taratorio merged commit 00850e0 into devel Apr 27, 2024
7 checks passed
@taratorio taratorio deleted the fix-make-devtools branch April 27, 2024 09:49
taratorio added a commit that referenced this pull request May 1, 2024
fixes a 2nd regression introduced by -
#7593

- it generates duplicate struct types in the same package (check
screenshot below)
- also found a better way to fix the first regression with unused
imports (improvement over
#10091)

<img width="1438" alt="Screenshot 2024-04-30 at 17 30 42"
src="https://github.com/ledgerwatch/erigon/assets/94537774/154d484b-4b67-4104-8a6e-eac2423e1c0e">
taratorio added a commit that referenced this pull request May 1, 2024
fixes a 2nd regression introduced by -
#7593

- it generates duplicate struct types in the same package (check
screenshot below)
- also found a better way to fix the first regression with unused
imports (improvement over
#10091)

<img width="1438" alt="Screenshot 2024-04-30 at 17 30 42"
src="https://github.com/ledgerwatch/erigon/assets/94537774/154d484b-4b67-4104-8a6e-eac2423e1c0e">
taratorio added a commit that referenced this pull request May 2, 2024
fixes a 2nd regression introduced by -
#7593

- it generates duplicate struct types in the same package (check
screenshot below)
- also found a better way to fix the first regression with unused
imports (improvement over
#10091)

<img width="1438" alt="Screenshot 2024-04-30 at 17 30 42"
src="https://github.com/ledgerwatch/erigon/assets/94537774/154d484b-4b67-4104-8a6e-eac2423e1c0e">
@ghost ghost mentioned this pull request Jun 3, 2024
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.

None yet

2 participants