3c125ac0 |
1 | Fix one of upstream non-determinism, tracked here: |
1e96e6ac |
2 | |
3c125ac0 |
3 | https://github.com/JuliaLang/julia/issues/34115 |
4 | https://github.com/JuliaLang/julia/issues/25900 |
5 | |
6 | |
7 | Patch by Nicoló Balzarotti <nicolo@nixo.xyz>. |
8 | |
9 | --- a/base/loading.jl |
10 | +++ b/base/loading.jl |
11 | @@ -807,7 +807,10 @@ |
12 | path = normpath(joinpath(dirname(prev), _path)) |
13 | end |
14 | if _track_dependencies[] |
15 | - push!(_require_dependencies, (mod, path, mtime(path))) |
16 | + push!(_require_dependencies, |
17 | + (mod, path, |
18 | + haskey(ENV, "SOURCE_DATE_EPOCH") ? |
19 | + parse(Float64, ENV["SOURCE_DATE_EPOCH"]) : mtime(path))) |
20 | end |
21 | return path, prev |
22 | end |