mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 06:07:24 +02:00
Reset ZipEntry timestamps to 2010-01-01 in order to prevent negative value
This commit is contained in:
@@ -1778,7 +1778,10 @@ object Defaults extends BuildCommon {
|
|||||||
config,
|
config,
|
||||||
s.cacheStoreFactory,
|
s.cacheStoreFactory,
|
||||||
s.log,
|
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
|
config.jar
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user