-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Mac can be cases-sensitive #16591
Comments
This is some general debt we have which imho we can only get out by checking right on startup if you can create 2 files with different casing and then store this result somewhere accessible in all places throughout the code where today we do a simple assumption. |
Yeah - I am just a little worried that in the |
@Tyriar wouldn't it be better to store the case as it comes in from the user but when comparing to another path just lowercase both? |
@bpasero with workspaces yes, paths are a little more tricky though as we need the path in order to generate the hash. Maybe the best way to fix this is to add some |
http://apple.stackexchange.com/a/22304 shows how you can query the disk, attempting to write and then caching it would probably be a better, more general solution? |
@Tyriar yes, it should be in the environment service and it is as simple as doing the writing I would say instead of spawning some disk commands that are platform dependent. I see the problem with the hash, so always using lowercase makes sense for those if you run on a case insensitive file system. |
Storing the paths as they are (whether the FS case sensitive or not) is covered in #16829 |
backups: stop lowercasing file paths (fixes #16591)
re #16544
This is more FYI that also on macOS case-sensitive file systems exist. The default is insensitive but it's easy to change. Unsure if hot-exit will handle that gracefully?
The text was updated successfully, but these errors were encountered: