2020-05-10 04:15:10 -04:00
|
|
|
Fix one of upstream non-determinism, tracked here:
|
2020-04-02 05:55:20 -04:00
|
|
|
|
2020-05-10 04:15:10 -04:00
|
|
|
https://github.com/JuliaLang/julia/issues/34115
|
|
|
|
https://github.com/JuliaLang/julia/issues/25900
|
|
|
|
|
|
|
|
|
|
|
|
Patch by Nicoló Balzarotti <nicolo@nixo.xyz>.
|
|
|
|
|
|
|
|
--- a/base/loading.jl
|
|
|
|
+++ b/base/loading.jl
|
2022-12-08 05:06:47 -05:00
|
|
|
@@ -1131,7 +1131,10 @@ function _include_dependency(mod::Module, _path::AbstractString)
|
2020-05-10 04:15:10 -04:00
|
|
|
end
|
|
|
|
if _track_dependencies[]
|
2022-12-08 05:06:47 -05:00
|
|
|
@lock require_lock begin
|
2020-05-10 04:15:10 -04:00
|
|
|
- push!(_require_dependencies, (mod, path, mtime(path)))
|
|
|
|
+ push!(_require_dependencies,
|
|
|
|
+ (mod, path,
|
|
|
|
+ haskey(ENV, "SOURCE_DATE_EPOCH") ?
|
|
|
|
+ parse(Float64, ENV["SOURCE_DATE_EPOCH"]) : mtime(path)))
|
2022-12-08 05:06:47 -05:00
|
|
|
end
|
2020-05-10 04:15:10 -04:00
|
|
|
end
|
|
|
|
return path, prev
|
|
|
|
end
|