Skip to content

[5.6][swift-stdlib-tool] Fix finding sibling directories #41262

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 Feb 8, 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.

(cherry picked from commit d1eabf1)

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.

(cherry picked from commit d1eabf1)
@keith keith requested a review from CodaFi February 8, 2022 03:50
@keith keith requested a review from a team as a code owner February 8, 2022 03:50
@CodaFi
Copy link
Contributor

CodaFi commented Feb 8, 2022

Nominated in rdar://88610842

@swift-ci test

@CodaFi CodaFi merged commit 1ef7212 into swiftlang:release/5.6 Feb 9, 2022
@keith keith deleted the ks/5.6-swift-stdlib-tool-fix-finding-sibling-directories branch February 9, 2022 02:20
@keith
Copy link
Member Author

keith commented Feb 9, 2022

Thanks all!

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