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
[SR-688] Package.swift isn't respected for dependencies #5321
Comments
Seems unlikely that this bug exists, since SwiftPM builds itself and it has many targets with many dependencies. |
My apologies, the specific scenario I provided in my initial report has no issues. However, I just created a minimal repro case at https://github.com/jpsim/SR688Example demonstrating that the "excluded" key isn't being respected.
And the actual dependency package has no issue building at all:
|
Comment by Kostiantyn Koval (JIRA) Yes, there is really an issue. The exclude key is only handled for the root package, but it's not handled for dependencies. |
Comment by Kostiantyn Koval (JIRA) This seems to be an easy fix. Need to add tests for that. |
Comment by Kostiantyn Koval (JIRA) It's fixed now and PR is waiting for merge. |
Comment by Kostiantyn Koval (JIRA) @jpsim This issue suppose to be fixed in master branch now. Can you please verify that and update issue status. |
Marked as resolved, but will close when we get confirmation. |
Additional Detail from JIRA
md5: 843a95daa5865ec2651e488a650f2990
Issue Description:
Swift Package Manager doesn't respect its dependencies' Package.swift files, which means (among other issues) that packages with interdependencies fail to build when included as dependencies to other projects.
For example, take this Package description from the Swift Package Manager's documentation:
If I attempt to use this package as a dependency, {code:none}swift build
The text was updated successfully, but these errors were encountered: