-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Package-level module aliases are not applied #6911
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
Comments
Do I understand correctly that this compiles?
I would not expect that, IIRC we only defined module aliases at the product dependency level? cc @tomerd |
It was meant to be used as a property of a product dependency. It was declared |
Hmm I guess we could/should have prefixed those symbols with an underscore to make that clear. When are we changing the access level to |
I don't think we can do that until the next release after 5.10, but we should be able to use |
Actually seems like we can just make it internal. It may have been needed to be public because of how the old serialization code worked that I refactored in 5.9 |
These were public for implementation reasons, likely because of how the old serialization code worked which I refactored in 5.9 fixes #6911
These were public for implementation reasons, likely because of how the old serialization code worked which I refactored in 5.9 fixes #6911
These were public for implementation reasons, likely because of how the old serialization code worked which I refactored in 5.9 fixes #6911
These were public for implementation reasons, likely because of how the old serialization code worked which I refactored in 5.9 fixes #6911
Description
I have a package that needs to alias a dependency’s module due to conflicting module names.
Currently, I am doing this at the product level like so:
This works, but I would like to do the alias at the package level like so:
Expected behavior
I expect the package-level module alias to be applied, similar to the product-level module alias.
Actual behavior
The package manager returns an error:
Steps to reproduce
with-flight-school-dep
branch..package(url: "https://github.com/Flight-School/MessagePack.git", from: "1.2.4")
with a similar dependency that has themoduleAliases
property specified.moduleAliases
parameter from.product(name: "MessagePack", package: "MessagePack", moduleAliases: …)
.swift build
Swift Package Manager version/commit hash
swift-5.8.1-RELEASE
Swift & OS version (output of
swift --version ; uname -a
)The text was updated successfully, but these errors were encountered: