As mentioned in the docs
|
| <a id="kt_jvm_binary-env"></a>env | Environment variables to set when this binary is executed with `bazel run`. Note: for Starlark rules, values are used as-is (no automatic $(location) / make variable expansion). | <a href="https://bazel.build/rules/lib/core/dict">Dictionary: String -> String</a> | optional | `{}` | |
currently you can't use
$(location ) or other expansions in env= for say kt_jvm_binary. While java_binary supports it
As mentioned in the docs
rules_kotlin/docs/kotlin.md
Line 63 in 4eb4b23
$(location )or other expansions in env= for say kt_jvm_binary. While java_binary supports it