-
Notifications
You must be signed in to change notification settings - Fork 1.4k
moduleAliases
feature is flaky
#6913
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
I don't think |
Oh, TIL! Both It is interesting that this flakiness issue is reproducible with just |
@elsh, I am also struggling with using moduleAliases and I would be incredibly thankful if you could take a look at this. I have three packages, A & B and C. Both A and B have a target named X. C has both A and B as dependency, and because both A and B have a target named X, there is the 'Multiple targets named...' error in Xcode. The following is in C's Package.swift.
However, this doesn't fix the issue and the error ('multiple targets..') persists. Could you please help me identify where I'm going wrong? |
Description
My package has a target named
MessagePack
. I am writing benchmarks to compare my package with other packages, so I need to add those other packages as dependencies of my package.One of those dependencies also has a target named
MessagePack
. To avoid the naming conflict, I am attempting to use themoduleAliases
feature to rename the dependency’sMessagePack
target toFlightSchoolMessagePack
:This works sometimes but other times, Swift package manager complains about duplicate target names:
Expected behavior
The feature should work 100% of the time.
Actual behavior
The feature is flaky.
Steps to reproduce
with-flight-school-dep
branch.reproduce-duplicate-targets-issue.sh
script.Example result:
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: