Running nativeImageRunAgent before nativeImage will fail due to
Could not find agent library native-image-agent on the library path
error. This is because running nativeImageRunAgent fetches graal-native, but does not run gu install native-image.
Thus, It should depend on nativeImageCommand to fetch missing dependencies.
Running
nativeImageRunAgent
beforenativeImage
will fail due toCould not find agent library native-image-agent on the library path
error. This is because runningnativeImageRunAgent
fetches graal-native, but does not rungu install native-image
.Thus, It should depend on
nativeImageCommand
to fetch missing dependencies.