From 5862d715e6b28c6753f15f0aab00f1aa2ea2f76a 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 fc6659aa3e..c7c452cf0d 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 @@ -80,7 +80,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, @@ -95,7 +95,7 @@ public fun ActionCoords.generateBinding( ) 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 = it, 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 acd65820de..cfe5d5311b 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