Skip to content

Commit

Permalink
don't use pkgimages if any includes fall in tracked path
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jan 9, 2023
1 parent 708d1bd commit 04a742f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2645,6 +2645,7 @@ end
return true
end
end
tracked_path = unsafe_string(JLOptions().tracked_path)
for chi in includes
f, ftime_req = chi.filename, chi.mtime
if !isfile(f)
Expand All @@ -2657,6 +2658,14 @@ end
@debug "Rejecting stale cache file $cachefile because file $f does not exist"
return true
end
if JLOptions().code_coverage == 3 && occursin(tracked_path, f)
@debug "Rejecting cache file $cachefile because included file $f is being tracked by --code-coverage"
return true
end
if JLOptions().malloc_log == 3 && occursin(tracked_path, f)
@debug "Rejecting cache file $cachefile because included file $f is being tracked by --track-allocation"
return true
end
ftime = mtime(f)
is_stale = ( ftime != ftime_req ) &&
( ftime != floor(ftime_req) ) && # Issue #13606, PR #13613: compensate for Docker images rounding mtimes
Expand Down

0 comments on commit 04a742f

Please sign in to comment.