From 31f33a9c8f8c2e390fddc8978219441dcd3ebe32 Mon Sep 17 00:00:00 2001 From: Ilya Goncharov Date: Mon, 9 Dec 2024 12:03:39 +0100 Subject: [PATCH] [Wasm] Get rid of unsupported sunos in Node.js ^KT-72027 fixed --- .../org/jetbrains/kotlin/gradle/targets/js/nodejs/Platform.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/nodejs/Platform.kt b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/nodejs/Platform.kt index 6bee50e36fb61..fc50f2ef104a7 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/nodejs/Platform.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/nodejs/Platform.kt @@ -18,7 +18,6 @@ internal enum class OsType(val osName: String) { MAC("darwin"), LINUX("linux"), FREEBSD("linux"), // https://github.com/node-gradle/gradle-node-plugin/issues/178 - SUN("sunos"), } internal fun parsePlatform(name: String, arch: String, uname: Provider): Platform { @@ -39,7 +38,6 @@ internal fun parseOsType(type: String): OsType { name.contains("mac") -> OsType.MAC name.contains("linux") -> OsType.LINUX name.contains("freebsd") -> OsType.FREEBSD - name.contains("sunos") -> OsType.SUN else -> error("Unsupported OS: $name") } }