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 infinite looping if swift-format is run in a directory that doesn't contain a .swift-format file #845

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 10, 2024

#802 this sort of infinite looping issue on Windows but introduced it on Unix platforms where URL.deletingLastPathComponent on / returns /...

…'t contain a `.swift-format` file

swiftlang#802 this sort of infinite looping issue on Windows but introduced it on Unix platforms where `URL.deletingLastPathComponent` on `/` returns `/..`.
@ahoppen ahoppen merged commit 7ee11c7 into swiftlang:main Oct 11, 2024
14 checks passed
@ahoppen ahoppen deleted the infinite-searching branch October 11, 2024 20:01
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