Skip to content

[swift-stdlib-tool] Fix finding sibling directories #41110

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

Conversation

keith
Copy link
Member

@keith keith commented Jan 31, 2022

When used without passing --source-libraries, this tool fetches its
current path and uses that to find the directories of the swift
libraries near it.

Since #39216 it was searching the
nearby directories recursively, and only for files, instead of just
looking at 1 level, only for directories. Because of this it would never
discover path/to/lib/swift-5.0/... because it was only looking for
files.

This fixes this issue with a new function, and renames the previous
function to be more explicit for the other use case that does want that
behavior.

When used without passing `--source-libraries`, this tool fetches its
current path and uses that to find the directories of the swift
libraries near it.

Since swiftlang#39216 it was searching the
nearby directories recursively, and only for files, instead of just
looking at 1 level, only for directories. Because of this it would never
discover `path/to/lib/swift-5.0/...` because it was only looking for
files.

This fixes this issue with a new function, and renames the previous
function to be more explicit for the other use case that does want that
behavior.
@keith
Copy link
Member Author

keith commented Jan 31, 2022

cc @salinas-miguel @CodaFi

@keith
Copy link
Member Author

keith commented Jan 31, 2022

I will submit a 5.6 cherry pick once this is reviewed, this is currently broken in Xcode 13.3 beta 1 which is how we discovered it

@keith
Copy link
Member Author

keith commented Feb 3, 2022

@DougGregor since you're the 5.6 compiler release manager can you check this one out? I think we should cherry pick it to this release since it's a regression from 5.5

@CodaFi
Copy link
Contributor

CodaFi commented Feb 7, 2022

@swift-ci test

@keith keith merged commit d1eabf1 into swiftlang:main Feb 8, 2022
@keith keith deleted the ks/swift-stdlib-tool-fix-finding-sibling-directories branch February 8, 2022 03:45
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.

2 participants