You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java_test collects the paths to native libraries from JavaInfo.transitive_native_libraries and specifies them in the java.library.path property. kt_jvm_test does not do this.
The current workaround if loading native libraries is to use a combination of java_test and kt_jvm_library instead. e.g.
Sorry, I guess I forgot to include that part in the workaround example. The native dep would be a shared library (cc_binary target with linkshared = True) specified in the deps of the library target.
@TwoClocks The workaround I mentioned above (using java_test) does work for running tests written in Kotlin transitively depending on a native library. In my project, we've made a reference to this issue every time we've used that workaround.
java_test
collects the paths to native libraries fromJavaInfo.transitive_native_libraries
and specifies them in thejava.library.path
property.kt_jvm_test
does not do this.The current workaround if loading native libraries is to use a combination of
java_test
andkt_jvm_library
instead. e.g.The text was updated successfully, but these errors were encountered: