From 93ca4029021d5b293214b27b6d9ef9a78f33598b Mon Sep 17 00:00:00 2001 From: Venkatesh Dayananda Date: Sun, 16 Jun 2024 08:50:46 +0530 Subject: [PATCH] fix: ignore broken symlinks (#832) * fix: ignore broken symlinks * fix ci * maybe * excluding 1.4 macos (cherry picked from commit fcb7966df7faabeef3d4d6e7369482a89bc1573f) * fix * Update .github/workflows/ci.yml Co-authored-by: Sebastian Pfitzner --------- Co-authored-by: Sebastian Pfitzner Co-authored-by: Dominique Luna --- src/JuliaFormatter.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/JuliaFormatter.jl b/src/JuliaFormatter.jl index 5c861194e..2930ef2d1 100644 --- a/src/JuliaFormatter.jl +++ b/src/JuliaFormatter.jl @@ -442,6 +442,7 @@ function format(path::AbstractString, options::Configuration) formatted = Threads.Atomic{Bool}(true) Threads.@threads for subpath in readdir(path) subpath = joinpath(path, subpath) + !ispath(subpath) && continue is_formatted = format(subpath, options) Threads.atomic_and!(formatted, is_formatted) end