Skip to content

Upgrade to v8.x causes native build error #600

Description

@Obirah

Hi,

we are heavily using your library in our Quarkus Kubernetes Operators that are built natively (with Mandrel (GraalVM)). When trying to upgrade to version 8 of the library, we're getting the following native build error:

Error: Substitution target for io.github.oshai.kotlinlogging.internal.Target_io_github_oshai_kotlinlogging_internal_KLoggerFactory$Companion is not loaded. Use field `onlyWith` in the `TargetClass` annotation to make substitution only active when needed.

Internal exception: com.oracle.svm.core.util.UserError$UserException: Substitution target for io.github.oshai.kotlinlogging.internal.Target_io_github_oshai_kotlinlogging_internal_KLoggerFactory$Companion is not loaded. Use field `onlyWith` in the `TargetClass` annotation to make substitution only active when needed.

We will investigate further, if there's a fix we can use to mitigate this. I just wanted to ask in parallel if there's maybe something that can be done on the library side to fix this problem?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions