-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Zig fmt fails to open local-path files #4605
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
Comments
As far as I can tell, Also worth noting that
|
Pre-resolving has huge implications for following symlinks (called/using "reparse points" in NT-speak). I don't think its required, but will need to do some research. |
Tiny reproduction: const std = @import("std");
test "windows open file" {
var first = try std.fs.cwd().openFile("test.zig", .{});
first.close();
var second = try std.fs.cwd().openFile(".\\test.zig", .{});
second.close();
} If |
So I did some research, and processing '..' on windows requires a dance where you use |
This can be closed now (fixed by #5187) |
Zig 0.5.0+6a0927d8c on Windows
The file window.zig exists, but these fail. Just using
zig fmt window.zig
works fine.For the second one I guess it's the same as #2668
The text was updated successfully, but these errors were encountered: