I was surprised how easy it is to break the compil...
# github-workflows-kt
j
I was surprised how easy it is to break the compiler for Kotlin scripts It throwed two times
error: backend Internal error: Exception during IR lowering
File being compiled: /Users/jmfayard/tignum/backend-tignum-x/.github/workflows/build.main.kts
then you no idea what line is causing the problems and have to ressort to trials and errors 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)
p
I also hit
Exception during IR lowering
several days ago, but looks like a different case: https://youtrack.jetbrains.com/issue/KT-51169
yeah, it's not really stable yet 😅
n
i ran into that too.. its really unhappy having function in the root of the script put them in a
object Util
, then import
$filename.Util.functionName
in my case
import Docker_workflow_main.Util.secret