rules_kotlin icon indicating copy to clipboard operation
rules_kotlin copied to clipboard

Version 1.7.1 of rules_kotlin with Bazel 5.x gives "Error in TestEnvironment"

Open cheister opened this issue 2 years ago • 0 comments

After updating to version 1.7.1 with Bazel 5.1.0 I get the error

ERROR: src/test/java/BUILD:8:13: in kt_jvm_test rule //src/test/java:KtTest: 
Traceback (most recent call last):
	File "cache/bazel/879c5fa76919d0bed49168a2e457a904/external/io_bazel_rules_kotlin/kotlin/internal/jvm/impl.bzl", line 306, column 32, in kt_jvm_junit_test_impl
		testing.TestEnvironment(environment = ctx.attr.env),
Error in TestEnvironment: TestEnvironment() got named argument for positional-only parameter 'environment'

which is coming from https://github.com/bazelbuild/rules_kotlin/pull/837/files

I assume Version 1.7.1 is still supposed to support older versions of Bazel?

cheister avatar Feb 26 '23 21:02 cheister