From c755b12c5779e103715ecd17815939df51208104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Fri, 16 Aug 2024 12:06:32 +0200 Subject: [PATCH] fix(abg): correct paths in source jar --- .../workflows/actionbindinggenerator/generation/Generation.kt | 4 ++-- .../typesafegithub/workflows/actionbindinggenerator/Utils.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt b/action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt index fae310210f..7ed27f4f41 100644 --- a/action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt +++ b/action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt @@ -88,7 +88,7 @@ public fun ActionCoords.generateBinding( return listOfNotNull( ActionBinding( kotlinCode = actionBindingSourceCodeUntyped, - filePath = "kotlin/io/github/typesafegithub/workflows/actions/$packageName/$classNameUntyped.kt", + filePath = "io/github/typesafegithub/workflows/actions/$packageName/$classNameUntyped.kt", className = classNameUntyped, packageName = packageName, typingActualSource = null, @@ -96,7 +96,7 @@ public fun ActionCoords.generateBinding( classNameAndSourceCodeTyped?.let { (className, actionBindingSourceCode) -> ActionBinding( kotlinCode = actionBindingSourceCode, - filePath = "kotlin/io/github/typesafegithub/workflows/actions/$packageName/$className.kt", + filePath = "io/github/typesafegithub/workflows/actions/$packageName/$className.kt", className = className, packageName = packageName, typingActualSource = inputTypingsResolved.second, diff --git a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/Utils.kt b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/Utils.kt index 63f2046cd2..ecc63b1154 100644 --- a/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/Utils.kt +++ b/action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/Utils.kt @@ -21,7 +21,7 @@ fun List.shouldContainAndMatchFile(path: String) { } val actualContent = binding.kotlinCode.removeWindowsNewLines() - binding.filePath shouldBe "kotlin/io/github/typesafegithub/workflows/actions/johnsmith/$path" + binding.filePath shouldBe "io/github/typesafegithub/workflows/actions/johnsmith/$path" if (System.getenv("GITHUB_ACTIONS") == "true") { actualContent shouldBe expectedContent