Skip to content

Commit 4f9e506

Browse files
committed
Merge pull request #13613 from JuliaLang/jmm/loose_mtime_precache
Avoid unnecessary recompilation in Docker images
2 parents 29b7199 + 9575c2d commit 4f9e506

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/loading.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,8 @@ function stale_cachefile(modpath, cachefile)
508508
return true # cache file was compiled from a different path
509509
end
510510
for (f,ftime) in files
511-
if mtime(f) != ftime
511+
# Issue #13606: compensate for Docker images rounding mtimes
512+
if mtime(f) (ftime, floor(ftime))
512513
return true
513514
end
514515
end

0 commit comments

Comments
 (0)