diff --git a/kotlin/internal/jvm/compile.bzl b/kotlin/internal/jvm/compile.bzl index 08f04b77e..5ae58f23f 100644 --- a/kotlin/internal/jvm/compile.bzl +++ b/kotlin/internal/jvm/compile.bzl @@ -162,7 +162,7 @@ def _adjust_resources_path(path, resource_strip_prefix): return _adjust_resources_path_by_default_prefixes(path) def _merge_kt_jvm_info(module_name, providers): - language_versions = {p.language_version: True for p in providers if p.language_verison} + language_versions = {p.language_version: True for p in providers if p.language_version} if len(language_versions) != 1: fail("Conflicting kt language versions: %s" % language_versions) return _KtJvmInfo( @@ -179,7 +179,7 @@ def _kotlinc_options_provider_to_flags(opts, language_version): return "" # Validate the compiler opts before they are mapped over to flags - _validate_kotlinc_options(opts, language_verison) + _validate_kotlinc_options(opts, language_version) flags = [] if opts.warn == "off": @@ -351,7 +351,7 @@ def _run_kt_builder_action( for f, path in outputs.items(): args.add("--" + f, path) - args.add_all("--kotlin_passthrough_flags", _kotlinc_options_provider_to_flags(toolchains.kt.kotlinc_options, toolchains.kt.language_verison)) + args.add_all("--kotlin_passthrough_flags", _kotlinc_options_provider_to_flags(toolchains.kt.kotlinc_options, toolchains.kt.language_version)) args.add_all("--javacopts", _javac_options_provider_to_flags(toolchains.kt.javac_options)) # TODO: Implement Strict Kotlin deps: (https://github.com/bazelbuild/rules_kotlin/issues/419) # This flag is currently unused by the builder but required for the unused_deps tool