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

fix(genaip): invalid code generation for top-level singletons #311

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vallahaye
Copy link

@vallahaye vallahaye commented Sep 8, 2024

Hello there 👋

This fixes the issue I encountered when generating top-level singleton resources.

The changes involve passing a protogen.GoIdent to g.P instead of using g.QualifiedGoIdent, which always imports the identifier's package, whether it's used or not.

The test I've added is essentially a dummy test to force the compilation of the generated code.

Closes #310

The `fmt` and `strings` packages are imported but not used, resulting in compilation errors.

Closes einride#310
@vallahaye vallahaye requested a review from a team as a code owner September 8, 2024 20:41
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.

Invalid code generation for top-level singletons
1 participant