-
Notifications
You must be signed in to change notification settings - Fork 45
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
vibe.core.path: Cross-platform normalization / equality ? #423
Comments
I didn't even remember that the old code performed implicit normalization when concatenating. IMO this is, among other implicit operations, definitely unsound for the general case. However, in an application specific context that may make perfect sense, so the workaround in DUB probably functionally makes sense. I'm not sure how to integrate that in a nice way into the
We should probably force
I kind of agree, but really that just reflects the subtle differences in path handling across platforms (such as Posix paths being able to contain |
I have a
Probably, it's just a pain to go through that deprecation cycle when I am just trying to upgrade dependencies.
The "wrapper" is starting to feel more like a custom implementation at this point. |
Sounds useful, would definitely require proper sub typing to make it usable, but hopefully
True, it's really more of a workaround than a desirable part of the code base. I'll sketch up an API when I get the time, maybe it's actually not that bad to add all of these special types as long as sub typing works everywhere and you can still just use plain |
I have been trying to adapt dub to the newer path modules, but have hit a lot of issues:
Dependency
have aNativePath
in them, and this can lead to differences in the generateddub.selections.json
. On the other hand, we do want to accept platform-specific paths for some users;a/b/c
anda\b\c
don't compare equal, although they are on Windows.@s-ludwig : Is any of the above in scope for vibe-core's path module ?
The text was updated successfully, but these errors were encountered: