mirror of
https://github.com/apple/pkl.git
synced 2026-07-17 10:31:17 +02:00
Downstream native-image embedders are broken
#266
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sgammon on GitHub (Jan 26, 2025).
https://github.com/apple/pkl/blob/258eda86301c2daee548395aed7fdd028a33e39b/pkl-cli/pkl-cli.gradle.kts#L87-L88
This exclusion drops key classes from the
pkl-cliJAR which are needed to build Pkl native binaries. While the comment is correct, these classes are inert for JVM use at runtime, embedders will Have A Bad Time if these classes are excluded from anative-imageclasspath downstream, when using thepkl-cli-*JAR.These classes can be dropped from fat JARs, because shading with Truffle is only supported on JVM anyway.