Skip to content

Fix infinite searching for .swift-format file on Linux #848

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

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 11, 2024

Due to swiftlang/swift-foundation#980, the we may end up with a path == "" instead of /.

We didn’t catch this in the test because we only end up with an empty path when searching for a .swift-format file from a .swift-file that was not at the root of a directory.

Due to swiftlang/swift-foundation#980, the we may end up with a `path == ""` instead of `/`.

We didn’t catch this in the test because we only end up with an empty path when searching for a `.swift-format` file from a `.swift-file` that was not at the root of a directory.
@ahoppen ahoppen force-pushed the infinite-searching-linux branch from 3e9e9a0 to ba8f585 Compare October 11, 2024 20:38
@ahoppen ahoppen merged commit 9df5622 into swiftlang:main Oct 11, 2024
14 checks passed
@ahoppen ahoppen deleted the infinite-searching-linux branch October 11, 2024 21:19
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.

4 participants