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-14892] SPM: handle directories with dots in their names #4405

Open amomchilov opened 3 years ago

amomchilov commented 3 years ago
Previous ID SR-14892
Radar rdar://problem/80278112
Original Reporter @amomchilov
Type Bug
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 1 | |Component/s | Package Manager | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 72d2e6348eaa1cc7b492dfbcc69ac85d

Issue Description:

Say I have a folder with one or more periods in its name, such as foo.bar. Currently, SPM sees this as a a .bar bundle and forces me to either list it as a resource, or to exclude it from my target.

Is there any way to make SPM "leave it alone" and just treat it as a regular old directory? I want the files within it to be treated as normal. E.g. asset catalogs are picked up as resources, .swift files are picked up as sources, etc.

For background:

Forum thread: https://forums.swift.org/t/supporting-folders-with-dots-in-their-names/50251

typesanitizer commented 3 years ago

@swift-ci create