Skip to content
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-12454] Swift 5.2 SPM does not include files outside of specified target anymore #4571

Open
swift-ci opened this issue Mar 30, 2020 · 1 comment
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-12454
Radar rdar://problem/62201073
Original Reporter rikner (JIRA User)
Type Bug

Attachment: Download

Environment

Apple Swift version 5.2 (swiftlang-1103.0.32.1 clang-1103.0.32.29)
Target: x86_64-apple-darwin19.4.0

macOS Catalina 10.15.4

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 487b7242243c8ea9de432ca33ffce4f7

Issue Description:

If I have a SPM target with a custom path and the specified array of sources, prior to Swift 5.2 it was possible to add files outside of that path, like this:
.target(
{{ name:"DemoTarget",}}
{{ dependencies: [],}}
{{ path:"Foo",}}
{{ sources: [}}
{{ "Dummy.swift",}}
{{ "../Bar/FileOutsidePath.swift" // file in question}}
{{ ]}}
)

Now with Swift 5.2. this is not possible anymore and the file in question is not included in the target.

I pinned down the error in a minimal setup under https://github.com/rikner/c-swift-demo

@beccadax
Copy link
Contributor

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants