Skip to content

Commit 5066743

Browse files
CristianGMSpace Team
authored andcommitted
Allow creating a ZipFileSystem to read klibs
1 parent 25bf181 commit 5066743

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

repo/gradle-build-conventions/project-tests-convention/src/main/kotlin/test-inputs-check.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ tasks.withType<Test>().names.forEach { taskName ->
118118
"""permission java.io.FilePermission "${file.absolutePath}", "read";""",
119119
"""permission java.io.FilePermission "${file.parentFile.absolutePath}", "read";""",
120120
)
121+
} else if (file.extension == "klib") {
122+
// KlibLoader.kt creates a ZipFileSystem, and that always require write permission
123+
// (even if you don't modify the file, potentially, you could)
124+
listOf(
125+
"""permission java.io.FilePermission "${file.absolutePath}", "read,write";""",
126+
)
121127
} else if (file != null) {
122128
val parents = parentsReadPermission(file)
123129
listOf(

0 commit comments

Comments
 (0)