jib-extensions icon indicating copy to clipboard operation
jib-extensions copied to clipboard

The native-image extension does not detect .exe suffix on windows

Open bonitao opened this issue 11 months ago • 0 comments

Here are the commands I ran and the output I got.

./gradlew --no-configuration-cache tracker:nativeCompile
...
./gradlew --no-configuration-cache tracker:jibDockerBuild
...
> Task :tracker:jibDockerBuild FAILED
Running extension: com.google.cloud.tools.jib.gradle.extension.nativeimage.JibNativeImageExtension
Running Jib Native Image extension

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':tracker:jibDockerBuild'.
> error running extension 'com.google.cloud.tools.jib.gradle.extension.nativeimage.JibNativeImageExtension': Native-image executable does not exist or not a file: C:\Users\davir\code\trash\svcs\tracker\build\native\nativeCompile\svcs.tracker
  Did you run the 'native-image:native-image' goal?

The svcs.tracker file indeed does not exit, but its windows counterpart, svcs.tracker.exe exists and should be used instead.

bonitao avatar Apr 02 '24 11:04 bonitao