Skip to content

Commit

Permalink
Only reuse restored distribution directory if installer file is still…
Browse files Browse the repository at this point in the history
… the same
  • Loading branch information
Vampire committed Nov 3, 2022
1 parent 6ae2757 commit 06354bb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ val distributionDirectory = GlobalScope.async(start = LAZY) {

val restoredKey = if (useCache) cacheRestoreCache(arrayOf(cacheDirectory), cacheKey).await() else null
if (restoredKey != null) {
return@async cacheDirectory
if (existsSync(path.join(cacheDirectory, distribution.installerFile))) {
return@async cacheDirectory
}
}

val distributionDownload = toolCacheDownloadTool("${distribution.downloadUrl()}").await()
Expand Down

0 comments on commit 06354bb

Please sign in to comment.