paketo-buildpacks / native-image

A Cloud Native Buildpack that creates native images from Java applications
Apache License 2.0
49 stars 9 forks source link

Close #220: prepend "./" to the executable #238

Closed anthonydahanne closed 1 year ago

anthonydahanne commented 1 year ago

Summary

prepend "./" to the generated executable

Checklist

anthonydahanne commented 1 year ago

I additionally created a manual test there: https://github.com/anthonydahanne/spring-boot-demo-arm64/actions/runs/4366044677/jobs/7635509020#step:7:427 updated with latest changes: https://github.com/anthonydahanne/spring-boot-demo-arm64/actions/runs/4366044677/jobs/7668327902#step:7:377

You could see that using the fix from this PR published in anthonydahanne/fix:220, I could obtain a native image with:

[INFO]     [creator]       Process types:
[INFO]     [creator]         native-image: ./com.example.demo.DemoApplication (direct)
[INFO]     [creator]         task:         ./com.example.demo.DemoApplication (direct)
[INFO]     [creator]         web:          ./com.example.demo.DemoApplication (direct)

That runs fine.