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

kt_jvm_binary does not support non-java runtime_deps #1243

Open
TwoClocks opened this issue Dec 14, 2024 · 1 comment
Open

kt_jvm_binary does not support non-java runtime_deps #1243

TwoClocks opened this issue Dec 14, 2024 · 1 comment

Comments

@TwoClocks
Copy link

If you add a non-java runtime dependency to kt_jvm_binary, it fails with the below error.

In this case, I'm adding a C++ binary build in the same project.

Workaround:

replace kt_jvm_binary with java_binary and it works without any other changes.

line 656, column 25, in kt_jvm_produce_jar_actions
		java_info = JavaInfo(
	File "/virtual_builtins_bzl/common/java/java_info.bzl", line 752, column 35, in JavaInfo
	File "/virtual_builtins_bzl/common/java/java_info.bzl", line 690, column 52, in _javainfo_init
	File "/virtual_builtins_bzl/common/java/java_info.bzl", line 526, column 28, in _javainfo_init_base
	File "/virtual_builtins_bzl/common/java/java_info.bzl", line 482, column 51, in _validate_provider_list
Error in check_provider_instances: at index 1 of runtime_deps, got element of type NoneType, want JavaInfo
@Bencodes
Copy link
Collaborator

Bencodes commented Dec 14, 2024

@TwoClocks If you are able to provide a sample of some sort to reproduce this, that would be super helpful! The examples directory has some scaffolding projects that you can use to make things easier, and we can potentially even just check the case in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants