`zig fetch` failed if target project contains symlink

Zig version: 0.16.0 (On Windows)

Expectation: Zig should be able to handle any type of file in the repository.

Bug Report

If a project contains symbolic links (symlinks), it cannot be successfully fetched by the zig fetch command.

Here is a minimal example: a project that includes a symlink pointing to the README file. When you attempt to fetch it with zig fetch, the following error occurs:

error: unable to hash 'README': Unexpected

This issue may prove fatal to compatibility with the C/C++ ecosystem.

:thinking:

lib/std.Io.zig

pub const UnexpectedError = error{
    /// The Operating System returned an undocumented error code.
    ///
    /// This error is in theory not possible, but it would be better
    /// to handle this error than to invoke undefined behavior.
    ///
    /// When this error code is observed, it usually means the Zig Standard
    /// Library needs a small patch to add the error code to the error set for
    /// the respective function.
    Unexpected,
};