File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2144,11 +2144,13 @@ end
2144
2144
end
2145
2145
for chi in includes
2146
2146
f, ftime_req = chi. filename, chi. mtime
2147
- # Issue #13606: compensate for Docker images rounding mtimes
2148
- # Issue #20837: compensate for GlusterFS truncating mtimes to microseconds
2149
- # The `ftime != 1.0` condition below provides compatibility with Nix mtime.
2150
2147
ftime = mtime (f)
2151
- if ftime != ftime_req && ftime != floor (ftime_req) && ftime != trunc (ftime_req, digits= 6 ) && ftime != 1.0
2148
+ is_stale = ( ftime != ftime_req ) &&
2149
+ ( ftime != floor (ftime_req) ) && # Issue #13606, PR #13613: compensate for Docker images rounding mtimes
2150
+ ( ftime != trunc (ftime_req, digits= 6 ) ) && # Issue #20837, PR #20840: compensate for GlusterFS truncating mtimes to microseconds
2151
+ ( ftime != 1.0 ) && # PR #43090: provide compatibility with Nix mtime.
2152
+ ! ( 0 < (ftime_req - ftime) < 1e-6 ) # PR #45552: Compensate for Windows tar giving mtimes that may be incorrect by up to one microsecond
2153
+ if is_stale
2152
2154
@debug " Rejecting stale cache file $cachefile (mtime $ftime_req ) because file $f (mtime $ftime ) has changed"
2153
2155
return true
2154
2156
end
You can’t perform that action at this time.
0 commit comments