ziglang / zig

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
https://ziglang.org
MIT License
34.73k stars 2.54k forks source link

failed to rename compilation results #21781

Open npetrangelo opened 1 week ago

npetrangelo commented 1 week ago

Zig Version

0.13.0

Steps to Reproduce and Observed Behavior

I just installed Zig fresh on my MacBook Pro running Sonoma 14.5 using Brew, ran zig init to initialize a project directory, and then both zig build and zig build run produce this error. Removing .zig-cache does not make the error go away, although it changes the exact file names. failed to rename compilation results ('/Users/Holobrine/Documents/Zig/HelloZig/.zig-cache/tmp/c5308b30c7e1737a') into local cache ('/Users/Holobrine/Documents/Zig/HelloZig/.zig-cache/o/0ab1fb96ef1aa97673762cc79441b88f'): Unexpected

Expected Behavior

I expected the code produced by zig init to compile and run on my machine with no issues.

rohlem commented 1 week ago

Might be a duplicate of https://github.com/ziglang/zig/issues/17342, https://github.com/ziglang/zig/issues/19419, https://github.com/ziglang/zig/issues/21168 . In that case the workaround is to disable iCloud or add ".nosync" to the end of the project root directory name to disable for that directory.