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

Eliminate the warning that swift-syntax isn't being used. #8232

Open
wants to merge 1 commit into
base: release/6.1
Choose a base branch
from

Conversation

dschaefer2
Copy link
Member

Assume dependent products from prebuilts are being used.

Assume dependent products from prebuilts are being used.
@dschaefer2
Copy link
Member Author

@swift-ci please test

@dschaefer2
Copy link
Member Author

@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
Copy link
Contributor

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.

Copy link
Contributor

@bkhouri bkhouri left a 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?

@dschaefer2
Copy link
Member Author

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.

@dschaefer2
Copy link
Member Author

I'm going to lump this in with another bigger change coming to fix a serious bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants