You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been having issues running mill cli[2.12.18].mostly-static-image.nativeImage on the coursier codebase and I went down a rabbit hole of why this wasn't working. It looks like with some of the new installations of Graal gu isn't where this plugins thinks it is. For example you can see some logic in this plugin here:
I'll see what it ends up using for the graal home. However when I look in bin/gu it's not there like it is in some of my older graalvm installations. This then causes nativeImage to blow up since gu can't be found.
/data/run-native-image.sh: line 13: gu: command not found
1 targets failed
cli[2.12.18].mostly-static-image.nativeImage os.SubprocessException: Result of docker…: 127
os.proc.call(ProcessOps.scala:95)
io.github.alexarchambault.millnativeimage.NativeImage.$anonfun$nativeImage$8(NativeImage.scala:219)
mill.define.Task$TraverseCtx.evaluate(Task.scala:71)
The text was updated successfully, but these errors were encountered:
I've read here that on recent GraalVM packages (21), native-image already comes with the default installer and gu was removed.
I'm using it and gu isn't present and native-image comes installed
I've been having issues running
mill cli[2.12.18].mostly-static-image.nativeImage
on the coursier codebase and I went down a rabbit hole of why this wasn't working. It looks like with some of the new installations of Graalgu
isn't where this plugins thinks it is. For example you can see some logic in this plugin here:mill-native-image/plugin/src/io/github/alexarchambault/millnativeimage/NativeImage.scala
Lines 351 to 360 in b97f739
This is supposed to get the graal home and use it to find
gu
, but this doesn't seem to always work. For example if I do this command locally:I'll see what it ends up using for the graal home. However when I look in
bin/gu
it's not there like it is in some of my older graalvm installations. This then causesnativeImage
to blow up sincegu
can't be found.The text was updated successfully, but these errors were encountered: