Skip to content

Conversation

VolodymyrBg
Copy link
Contributor

This commit adds support for package renaming in the RLP code generator to handle import name conflicts. Key changes include:

  • Added automatic package alias generation for conflicting imports
  • Implemented package loading to get correct package names
  • Modified import handling to support aliased imports
  • Updated importsList to generate proper import statements with aliases
  • Added helper functions for alias management

The changes allow the code generator to handle cases where multiple imported packages have the same base name by automatically generating unique aliases, improving the robustness of the generated code.

@VolodymyrBg VolodymyrBg requested a review from fjl as a code owner February 9, 2025 19:36
@VolodymyrBg VolodymyrBg deleted the VolodymyrBg branch March 25, 2025 19:56
@fjl
Copy link
Contributor

fjl commented Mar 26, 2025

Why did you close this?

@VolodymyrBg VolodymyrBg restored the VolodymyrBg branch March 26, 2025 04:51
@VolodymyrBg VolodymyrBg reopened this Mar 26, 2025
@VolodymyrBg
Copy link
Contributor Author

Why did you close this?

Accidentally. I was making another pull request, so I thought it was already closed. To my happiness I can restore the branch

VolodymyrBg and others added 5 commits August 1, 2025 18:12
This commit adds support for package renaming in the RLP code generator to handle
import name conflicts. Key changes include:

- Added automatic package alias generation for conflicting imports
- Implemented package loading to get correct package names
- Modified import handling to support aliased imports
- Updated importsList to generate proper import statements with aliases
- Added helper functions for alias management

The changes allow the code generator to handle cases where multiple imported
packages have the same base name by automatically generating unique aliases,
improving the robustness of the generated code.
@fjl fjl merged commit 5572f2e into ethereum:master Aug 1, 2025
3 of 5 checks passed
@fjl fjl added this to the 1.16.2 milestone Aug 1, 2025
@VolodymyrBg VolodymyrBg deleted the VolodymyrBg branch August 27, 2025 13:20
howjmay pushed a commit to iotaledger/go-ethereum that referenced this pull request Aug 27, 2025
This adds support for importing types from multiple identically-named
packages.

---------

Co-authored-by: Felix Lange <[email protected]>
gzliudan pushed a commit to gzliudan/XDPoSChain that referenced this pull request Aug 29, 2025
This adds support for importing types from multiple identically-named
packages.

---------

Co-authored-by: Felix Lange <[email protected]>
gzliudan added a commit to XinFinOrg/XDPoSChain that referenced this pull request Aug 31, 2025
This adds support for importing types from multiple identically-named
packages.

---------

Co-authored-by: VolodymyrBg <[email protected]>
Co-authored-by: Felix Lange <[email protected]>
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