Skip to content

Commit

Permalink
Merge pull request #2916 from delitrem/make-escriptize-reproducible-w…
Browse files Browse the repository at this point in the history
…ith-erlang-27.1

make escriptize reproducible with erlang 27.1
  • Loading branch information
ferd authored Sep 18, 2024
2 parents 7da4837 + 3fa323b commit 29ccddb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/rebar/src/rebar_prv_escriptize.erl
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ read_file(Prefix, Filename, Dir) ->
FilePath = filename:join(Dir, Filename),
{ok, FileInfo0} = file:read_file_info(FilePath),
DateTime = {{1970, 1, 1}, {0, 0, 1}},
FileInfo = FileInfo0#file_info{mtime = DateTime},
FileInfo = FileInfo0#file_info{atime = DateTime,
ctime = DateTime,
mtime = DateTime},
[dir_entries(filename:dirname(Filename1)),
{Filename1, file_contents(FilePath), FileInfo}].

Expand Down

0 comments on commit 29ccddb

Please sign in to comment.