Skip to content

Error on duplicate module names in Swift module maps #78086

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

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

rmaz
Copy link
Contributor

@rmaz rmaz commented Dec 10, 2024

Duplicate module names on search paths produces an error, but providing duplicate module names in a Swift explicit module map file does not, instead the first entry will be chosen. Modify the module map parser to error on duplicated module names as well.

@rmaz
Copy link
Contributor Author

rmaz commented Dec 10, 2024

@swift-ci please smoke test Linux Platform

@rmaz
Copy link
Contributor Author

rmaz commented Dec 10, 2024

@swift-ci please test Windows Platform

@rmaz
Copy link
Contributor Author

rmaz commented Dec 10, 2024

@swift-ci please smoke test macOS Platform

@rmaz rmaz requested a review from drodriguez December 10, 2024 16:41
@rmaz
Copy link
Contributor Author

rmaz commented Dec 10, 2024

@swift-ci please smoke test macOS Platform

@rmaz
Copy link
Contributor Author

rmaz commented Dec 10, 2024

@swift-ci please test

Duplicate module names on search paths produces an error, but
providing duplicate module names in a Swift explicit module map
file does not, instead the first entry will be chosen. Modify
the module map parser to error on duplicated module names as well.
@rmaz
Copy link
Contributor Author

rmaz commented Dec 10, 2024

@swift-ci please test

@rmaz rmaz merged commit 1e9de68 into swiftlang:main Dec 11, 2024
5 checks passed
@rmaz rmaz deleted the failondupemodule branch December 11, 2024 14:39
facebook-github-bot pushed a commit to facebook/buck2-prelude that referenced this pull request Jan 2, 2025
Summary: This workaround is no longer required, the functionality was upstreamed in swiftlang/swift#78086

Reviewed By: narissiam

Differential Revision: D67331330

fbshipit-source-id: b817fb7bf924c7cde67e87a139e201f4328c6850
facebook-github-bot pushed a commit to facebook/buck2 that referenced this pull request Jan 2, 2025
Summary: This workaround is no longer required, the functionality was upstreamed in swiftlang/swift#78086

Reviewed By: narissiam

Differential Revision: D67331330

fbshipit-source-id: b817fb7bf924c7cde67e87a139e201f4328c6850
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.

3 participants