-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Replace colon with underscore in caching filePath (and a few other characters) #6358
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
compnerd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, yes, this is horrible character to use in the file path. : serves as the ADS delimiter on Windows and some other file systems also dislike this character I believe.
Here's an example of your CHANGELOG entry: * Replace colon with underscore in caching filePath.
[roman-bcny](https://github.com/roman-bcny)
[#issue_number](https://github.com/realm/SwiftLint/issues/issue_number)note: There are two invisible spaces after the entry's text. Generated by 🚫 Danger |
SimplyDanny
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There're even more characters allowed in a URL that must not be used in a "universal" file path. I think those are
< > : " / \ | ? *
and trailing dots .. Since we're already on it, we may replace them too.
|
@SimplyDanny makes sense, updated |
Without this we end up with a file name
http__:sitewhich doesn't work on Windows and crashesConfigurationTests.testValidRemoteChildConfigwith abort() which fast-exits resulting in partial test resultsWith this change I'm able to run swift test on Windows to completion (x64 6.2.1):
cc @compnerd