GoogleContainerTools / jib-extensions

Apache License 2.0
117 stars 35 forks source link

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

Open bonitao opened 5 months ago

bonitao commented 5 months ago

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.