Skip to content

Conversation

phoban01
Copy link
Contributor

@phoban01 phoban01 commented Aug 14, 2025

This change enables support for exporting aliased package names from source cue to go code.

Fixes #3974

@phoban01 phoban01 requested a review from cueckoo as a code owner August 14, 2025 10:58
Copy link
Member

@mvdan mvdan left a comment

Choose a reason for hiding this comment

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

Thank you for the patch! This is roughly in line with what I was thinking, and thank you for writing tests. I think a couple of edge cases still need to be ironed out, though.

@mvdan mvdan self-assigned this Aug 29, 2025
@phoban01
Copy link
Contributor Author

Thank you for the patch! This is roughly in line with what I was thinking, and thank you for writing tests. I think a couple of edge cases still need to be ironed out, though.

Thank you for the detailed review @mvdan. I've addressed all the comments, with just the one clarification needed.

This change enables support for exporting aliased package names from
source cue to go code.

The special case of the "_" import alias is explicitly ignored.

Fixes cue-lang#3974

Signed-off-by: Piaras Hoban <[email protected]>
Signed-off-by: Piaras Hoban <[email protected]>
Signed-off-by: Piaras Hoban <[email protected]>
Signed-off-by: Piaras Hoban <[email protected]>
@phoban01 phoban01 force-pushed the support-generating-go-import-alias branch from 80ef0f1 to 9ac432f Compare September 19, 2025 12:03
Copy link
Member

@mvdan mvdan left a comment

Choose a reason for hiding this comment

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

Thanks! Just one last nit.

@phoban01
Copy link
Contributor Author

phoban01 commented Oct 7, 2025

Thanks @mvdan.

Copy link
Member

@mvdan mvdan left a comment

Choose a reason for hiding this comment

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

Thanks!

@cueckoo cueckoo closed this in ba534b5 Oct 8, 2025
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.

cmd/cue: exp gengotypes fails to handle conflicting imports

2 participants