We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 406dcb5 commit 3564940Copy full SHA for 3564940
internal/node/node_repositories.bzl
@@ -422,6 +422,13 @@ def _prepare_node(repository_ctx):
422
yarn_bin_label = ("%s/bin/yarn.js" % yarn_package) if not is_windows else ("%s/yarn.cmd" % yarn_package)
423
yarn_script = "%s/bin/yarn.js" % yarn_path
424
425
+ # Ensure that the "vendored" binaries are resolved
426
+ # Just requesting their path from the repository context is enough to eager-load them
427
+ if repository_ctx.attr.vendored_node:
428
+ repository_ctx.path(Label(node_bin_label))
429
+ if repository_ctx.attr.vendored_yarn:
430
+ repository_ctx.path(Label(yarn_bin_label))
431
+
432
entry_ext = ".cmd" if is_windows else ""
433
node_entry = "bin/node%s" % entry_ext
434
npm_entry = "bin/npm%s" % entry_ext
0 commit comments