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

Fix product lookup #6376

Merged
merged 1 commit into from
Apr 5, 2023
Merged

Fix product lookup #6376

merged 1 commit into from
Apr 5, 2023

Conversation

neonichu
Copy link
Contributor

@neonichu neonichu commented Apr 4, 2023

For module aliasing, we changed the product lookup to include package identity, but product references can use a local identity as specified by the name attribute of the package dependency declaration. So for packages where the local name attribute didn't match the identity, we would not longer find the corresponding products at all. This switches us back to use the local identity that is also called explicitNameForTargetDependencyResolutionOnly in package reference.

rdar://106578471

@neonichu neonichu self-assigned this Apr 4, 2023
@neonichu neonichu force-pushed the fix-product-lookup branch from dc1c41f to 3f93267 Compare April 4, 2023 05:28
@neonichu
Copy link
Contributor Author

neonichu commented Apr 4, 2023

@swift-ci please smoke test

@tomerd
Copy link
Contributor

tomerd commented Apr 4, 2023

this fixes a regression we shipped in 5.8

do we also need a test to confirm the regression is fixed?

For module aliasing, we changed the product lookup to include package identity, but product references can use a local identity as specified by the `name` attribute of the package dependency declaration. So for packages where the local `name` attribute didn't match the identity, we would not longer find the corresponding products at all. This switches us back to use the local identity that is also called `explicitNameForTargetDependencyResolutionOnly` in package reference.

rdar://106578471
@neonichu neonichu force-pushed the fix-product-lookup branch from 3f93267 to 5c0f55d Compare April 4, 2023 18:24
@neonichu neonichu changed the title WIP: Fix product lookup Fix product lookup Apr 4, 2023
@neonichu
Copy link
Contributor Author

neonichu commented Apr 4, 2023

@swift-ci please smoke test

@neonichu
Copy link
Contributor Author

neonichu commented Apr 4, 2023

@swift-ci please smoke test windows

2 similar comments
@neonichu
Copy link
Contributor Author

neonichu commented Apr 4, 2023

@swift-ci please smoke test windows

@neonichu
Copy link
Contributor Author

neonichu commented Apr 4, 2023

@swift-ci please smoke test windows

@neonichu
Copy link
Contributor Author

neonichu commented Apr 4, 2023

Looks like Windows tests can't be started anymore?

@neonichu
Copy link
Contributor Author

neonichu commented Apr 4, 2023

@swift-ci please test windows

@neonichu
Copy link
Contributor Author

neonichu commented Apr 4, 2023

@shahmishal doesn't seem to be possible anymore to start the Windows build?

@shahmishal
Copy link
Member

Currently the load is high on the Windows system https://ci-external.swift.org/label/windows-server-2019/load-statistics

@neonichu
Copy link
Contributor Author

neonichu commented Apr 4, 2023

@shahmishal so we don't have a way to queue these until a node becomes available?

@neonichu
Copy link
Contributor Author

neonichu commented Apr 4, 2023

@swift-ci please smoke test windows

@neonichu neonichu merged commit afcd86a into main Apr 5, 2023
@neonichu neonichu deleted the fix-product-lookup branch April 5, 2023 02:32
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