-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Eliminate the warning that swift-syntax isn't being used. #8232
base: release/6.1
Are you sure you want to change the base?
Conversation
Assume dependent products from prebuilts are being used.
@swift-ci please test |
@swift-ci please test windows |
@@ -352,9 +358,11 @@ private func checkAllDependenciesAreUsed( | |||
let usedByPackage = productDependencies.contains { $0.name == product.name } | |||
// We check if any of the products of this dependency is guarded by a trait. | |||
let traitGuarded = traitGuardedProductDependencies.contains(product.name) | |||
// Consider prebuilts as used | |||
let prebuilt = prebuilts[dependency.identity]?.keys.contains(product.name) ?? false | |||
|
|||
// If the product is either used directly or guarded by a trait we consider it as used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this comment has to be updated as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought (possibly-blocking): It's great we are eliminating a warning, but would it be possible to add an automated test to ensure we do not regress, and to also gain confidence the changes fix the underlying issue?
That's what the change in PrebuiltsTest does. |
I'm going to lump this in with another bigger change coming to fix a serious bug. |
Assume dependent products from prebuilts are being used.