Open adam-fowler opened 3 years ago
@swift-ci create
This could be a quirk of the fact that the dependency is still present and not conditional, plus the fact that the minimum deployment target is a package-level property. But needs more investigation.
Interestingly Xcode doesn't complain about this.
Do you think this is something that is going to be resolved soon? I was hoping to replace an if statement at the end of my Package.swift https://github.com/soto-project/soto-core/blob/main/Package.swift with the new .when(platforms: [.linux]) before doing a new major release of Soto. But this issue means I can't.
Environment
Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1) Target: x86_64-apple-darwin19.6.0Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Package Manager | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 7f4e55b02e396816b5cbe9a36104fbeaIssue Description:
If a swift package includes a dependency that has a condition to be Linux only the platform requirements of that dependent package are still applied to other platforms.
The following Package.swift contains a dependency on apple/swift-crypto but only for Linux.
When I run `swift build` I get the following error even though I am not linking swift-crypto into the macOS version of my library.