mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 18:14:04 +02:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user