Skip to content

Make sure the compiler always rejects duplicate modules#5367

Open
giacomocavalieri wants to merge 2 commits intogleam-lang:mainfrom
giacomocavalieri:fix-5352
Open

Make sure the compiler always rejects duplicate modules#5367
giacomocavalieri wants to merge 2 commits intogleam-lang:mainfrom
giacomocavalieri:fix-5352

Conversation

@giacomocavalieri
Copy link
Member

This PR closes #5352
Now the compiler should always detect when a dependency is defining a module with the same name as the root project, or even when two imported dependencies are defining a module with the same name.

  • The changes in this PR have been discussed beforehand in an issue
  • The issue for this PR has been linked
  • Tests have been added for new behaviour
  • The changelog has been updated for any user-facing changes

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 compiles even if two packages provide the same imports

2 participants