Skip to content

Commit 403ff84

Browse files
committed
Set SOURCE_DATE_EPOCH to make builds reproducible
1 parent 956156b commit 403ff84

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ Rake::TestTask.new(:test) do |t|
66
end
77

88
task :default => :test
9+
10+
task "build" => "date_epoch"
11+
12+
task "date_epoch" do
13+
ENV["SOURCE_DATE_EPOCH"] = IO.popen(%W[git -C #{__dir__} log -1 --format=%ct], &:read).chomp
14+
end

0 commit comments

Comments
 (0)