I wrote Kotlin scripts today to generate GitHub ac...
# scripting
j
I wrote Kotlin scripts today to generate GitHub actions with https://github.com/krzema12/github-actions-kotlin-dsl I managed to break the compiler twice with this error:
error: backend Internal error: Exception during IR lowering
File being compiled: /Users/jmfayard/tignum/backend-tignum-x/.github/workflows/build.main.kts
Each time I had no idea what line is causing the problems and had to comment lines after lines until I found which one were the culprit In my case it was those two snippets:
Copy code
fun secret(variable: String): String =
    "\${{ secrets.$variable }}"
and
Copy code
data class Step(val name: String, val action: Action)

infix fun String.does(action: Action) = Step(this, action)