Merge pull request #6254 from takezoe/jar-reset-time

Reset ZipEntry timestamps to 2010-01-01 to prevent negative value
This commit is contained in:
eugene yokota 2021-01-14 11:59:56 -05:00 committed by GitHub
commit 508a4b4bb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1778,7 +1778,10 @@ object Defaults extends BuildCommon {
config,
s.cacheStoreFactory,
s.log,
sys.env.get("SOURCE_DATE_EPOCH").map(_.toLong * 1000).orElse(Some(0L))
sys.env
.get("SOURCE_DATE_EPOCH")
.map(_.toLong * 1000)
.orElse(Some(1262304000000L)) // 2010-01-01
)
config.jar
}