add a failing genrule entry for #17
diff --git a/kotlin/kotlin.bzl b/kotlin/kotlin.bzl
index 92d84ca..f57965e 100644
--- a/kotlin/kotlin.bzl
+++ b/kotlin/kotlin.bzl
@@ -217,7 +217,6 @@
)
_binary_outputs = dict(_common_outputs.items() + {
- # "wrapper": "%{name}_wrapper.sh",
}.items())
########################################################################################################################
diff --git a/kotlin/rules/util.bzl b/kotlin/rules/util.bzl
index 7110ae1..2338a04 100644
--- a/kotlin/rules/util.bzl
+++ b/kotlin/rules/util.bzl
@@ -172,7 +172,7 @@
jvm_flags = " ".join([ctx.expand_location(f, ctx.attr.data) for f in jvm_flags])
template = ctx.attr._java_stub_template.files.to_list()[0]
- ctx.template_action(
+ ctx.actions.expand_template(
template = template,
output = ctx.outputs.executable,
substitutions = {
@@ -183,5 +183,5 @@
"%set_jacoco_metadata%": "",
"%workspace_prefix%": ctx.workspace_name + "/",
},
- executable = True,
+ is_executable = True,
)
\ No newline at end of file
diff --git a/tests/smoke/BUILD b/tests/smoke/BUILD
index 61342c7..77c4b5e 100644
--- a/tests/smoke/BUILD
+++ b/tests/smoke/BUILD
@@ -103,6 +103,13 @@
data=glob(["data/*"]),
)
+genrule(
+ name="helloworld_host_config_test",
+ tools=["//tests/smoke:helloworld"],
+ outs=["helloworld_output.txt"],
+ cmd = """./$(location //tests/smoke:helloworld) > "$@" """
+)
+
kt_jvm_library(
name = "hellojava",
srcs = glob(["hellojava/*.kt", "hellojava/*.java"]),