-
Notifications
You must be signed in to change notification settings - Fork 333
internal/encoding/gotypes: support go import aliasing #4028
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
internal/encoding/gotypes: support go import aliasing #4028
Conversation
There was a problem hiding this 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.
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]>
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]>
Signed-off-by: Piaras Hoban <[email protected]>
Signed-off-by: Piaras Hoban <[email protected]>
80ef0f1
to
9ac432f
Compare
There was a problem hiding this 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.
Signed-off-by: Piaras Hoban <[email protected]>
Signed-off-by: Piaras Hoban <[email protected]>
Thanks @mvdan. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This change enables support for exporting aliased package names from source cue to go code.
Fixes #3974