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 generation of package interface when modules are cached #4252

Merged
merged 8 commits into from
Feb 27, 2025

Conversation

GearsDatapacks
Copy link
Member

This PR follows on from #3669 and fixes #2898.
It uses partly the same approach of using the ModuleInterface (the part which is cached) to generate the package interface, rather than the AST. However, this is implemented in such a way that the cached modules do not need to be cloned when doing so.

@GearsDatapacks GearsDatapacks force-pushed the package-interface branch 3 times, most recently from 2087f6d to 16b4100 Compare February 21, 2025 19:06
Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Wonderful!! Thank you! I've left a few questions inline

@GearsDatapacks
Copy link
Member Author

All your comments/questions should now be resolved. I've moved the opaque field to the TypesVariantConstructors type as it seemed more appropriate there. I've also used a custom type instead of a bool now.

Copy link
Member

@lpil lpil 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!!!

@lpil lpil merged commit 8fe9e17 into gleam-lang:main Feb 27, 2025
12 checks passed
@GearsDatapacks GearsDatapacks deleted the package-interface branch February 27, 2025 15:38
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.

gleam export package-interface produces empty modules object
2 participants