Skip to content

Commit aa68e4a

Browse files
committed
Fix js deps
1 parent 813d9fe commit aa68e4a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

kotlin/internal/js/js.bzl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ kt_js_library = rule(
8989
),
9090
"_toolchain": attr.label(
9191
doc = """The Kotlin JS Runtime.""",
92-
default = Label("@" + _KT_COMPILER_REPO + "//:kotlin-stdlib-js"),
92+
default = Label("//kotlin/compiler:kotlin-stdlib-js"),
9393
cfg = "target",
9494
),
9595
},
@@ -104,11 +104,13 @@ kt_js_library = rule(
104104
provides = [_KtJsInfo],
105105
)
106106

107+
_KOTLIN_STDLIB_JS = Label("//kotlin/compiler:kotlin-stdlib-js")
108+
107109
def kt_js_library_macro(name, **kwargs):
108110
kwargs = _lock_attrs(name, kwargs)
109111

110112
# TODO this is a runtime dep, it should be picked up from the _toolchain attr or from a provider.
111-
kwargs["deps"] = kwargs.get("deps", []) + ["@" + _KT_COMPILER_REPO + "//:kotlin-stdlib-js"]
113+
kwargs["deps"] = kwargs.get("deps", []) + [_KOTLIN_STDLIB_JS]
112114
kt_js_library(name = name, **kwargs)
113115

114116
kt_js_import = rule(

0 commit comments

Comments
 (0)