Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix native-image arguments generation for native-sources package type #22069

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

zakkak
Copy link
Contributor

@zakkak zakkak commented Dec 9, 2021

  • Ensures the NativeImageSecurityProvidersBuildItem is taken into
    account to add -H:AdditionalSecurityProviders as needed

  • Set the GraalVM version to CURRENT, since we can't know which
    version will eventually be used to build the native image.
    This enables us to at least make sure that the generated arguments
    will work properly with the currently supported GraalVM.

  • Don't setContainerBuild since we don't really know whether it will
    eventually be built with a builder-image or locally.

    Backports Fix native-image arguments generation for native-sources package type #21809

* Ensures the NativeImageSecurityProvidersBuildItem is taken into
  account to add -H:AdditionalSecurityProviders as needed
* Set the GraalVM version to `CURRENT`, since we can't know which
  version will eventually be used to build the native image.
  This enables us to at least make sure that the generated arguments
  will work properly with the currently supported GraalVM.
* Don't `setContainerBuild` since we don't really know whether it will
  eventually be built with a builder-image or locally.
@quarkus-bot
Copy link

quarkus-bot bot commented Dec 9, 2021

Thanks for your pull request!

The title of your pull request does not follow our editorial rules. Could you have a look?

  • title should preferably start with an uppercase character (if it makes sense!)

This message is automatically generated by a bot.

@zakkak zakkak requested a review from gsmet December 9, 2021 15:00
@quarkus-bot quarkus-bot bot added the area/core label Dec 9, 2021
@zakkak zakkak changed the title [2.2] Fix native-image arguments generation for native-sources package type Fix native-image arguments generation for native-sources package type Dec 9, 2021
@gsmet gsmet added this to the 2.2.4.Final milestone Dec 9, 2021
@gsmet gsmet merged commit 6eafc4f into quarkusio:2.2 Dec 9, 2021
@gsmet
Copy link
Member

gsmet commented Dec 9, 2021

Thanks! I did the backport to 2.5.

@zakkak zakkak deleted the fix-native-sources-2.2 branch December 10, 2021 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants