mirror of https://github.com/sbt/sbt.git
Reset ZipEntry timestamps to 2010-01-01 in order to prevent negative value
This commit is contained in:
parent
844deab78c
commit
5ce3a174e8
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue