I thought we already worked around this, using an atomic move-in-place:
|
# atomic write to disk |
|
temp_path, io = mktemp(dirname(path); cleanup=false) |
|
write(io, lib) |
|
close(io) |
|
Base.rename(temp_path, path; force=true) |
However, it looks like this still happens on CI, e.g. https://buildkite.com/julialang/metal-dot-jl/builds/947#018ee3aa-18e2-472c-b93f-f77451e3f87a
I thought we already worked around this, using an atomic move-in-place:
GPUCompiler.jl/src/rtlib.jl
Lines 145 to 149 in c15433c
However, it looks like this still happens on CI, e.g. https://buildkite.com/julialang/metal-dot-jl/builds/947#018ee3aa-18e2-472c-b93f-f77451e3f87a