swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.67k stars 1.32k forks source link

[SR-15081] Unnecessary warnings from pulling in C files #4393

Open swift-ci opened 2 years ago

swift-ci commented 2 years ago
Previous ID SR-15081
Radar rdar://problem/82139708
Original Reporter kneekey23 (JIRA User)
Type Bug
Environment Code to reproduce is in the repo above in main
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 1 | |Component/s | Package Manager | |Labels | Bug | |Assignee | @abertelrud | |Priority | Medium | md5: f54868f68e98c2099a5e86537de0994a

Issue Description:

We cannot create a C target in our SPM `Package.swift` without specifying a `path`. But once we specify that path, SPM recursively finds every file in that path and throws up a warning about unhandled files despite the fact that we told SPM to only care about a specific file via `sources`.

tomerd commented 2 years ago

@swift-ci create