Merge pull request #6503 from eed3si9n/wip/6497

Skip zip file manipulation if the package is empty
This commit is contained in:
eugene yokota 2021-05-09 19:20:39 -04:00 committed by GitHub
commit 75ebde5995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -163,7 +163,8 @@ object RemoteCache {
val artp = artifactPath.value
val af = compileAnalysisFile.value
IO.copyFile(original, artp)
if (af.exists) {
// skip zip manipulation if the artp is a blank file
if (af.exists && artp.length() > 0) {
JarUtils.includeInJar(artp, Vector(af -> s"META-INF/inc_compile.zip"))
}
// val testStream = (test / streams).?.value