package fetching: path separators in symlinks are not normalized #17549
Labels
bug
Observed behavior contradicts documented or intended behavior
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
os-windows
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
Here you can see that symlink data is passed directly to the hasher:
zig/src/Package/Fetch.zig
Lines 1430 to 1433 in ca690ff
This leads to incorrect package hashes on Windows when the unpacked directory of files has any symlinks with path separators in them.
Instead, on Windows only, back slashes need to be normalized into forward slashes.
Example - this is the expected results, and what happens on Linux:
However, on Windows, it gives an incorrect result:
The text was updated successfully, but these errors were encountered: