Skip to content

Fix rejected assumeFilename when path argument is '-' #938

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
Feb 19, 2025

Conversation

andre-richter
Copy link
Contributor

This fixes a bug where swift-format wouldn't execute when argument --assume-filename is used together with a path argument of - (which is suggested since #914) when formatting from stdin.

Copy link
Member

@allevato allevato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@allevato allevato enabled auto-merge February 19, 2025 12:49
@allevato allevato merged commit 7f3e6b6 into swiftlang:main Feb 19, 2025
19 checks passed
@andre-richter andre-richter deleted the fix-assume-filename branch February 19, 2025 13:01
@TTOzzi
Copy link
Member

TTOzzi commented Feb 19, 2025

Ohh, thanks for catching what I missed! 🙇

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