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

SwiftPM should only build direct dependencies of a test target as @testable #7718

Open
1 task done
rauhul opened this issue Jun 26, 2024 · 0 comments
Open
1 task done
Labels

Comments

@rauhul
Copy link
Contributor

rauhul commented Jun 26, 2024

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

Given graph A -> B -> BTests. BTests should not be able to testable import A. See the attached repro project. repro.zip

The issue with the current behavior is the following graph causes a huge amount of code to be rebuilt with no value: swift-syntax -> MMIOMacros -> MMIOMacrosTests

@rauhul rauhul added the bug label Jun 26, 2024
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

1 participant