diff --git a/internal/node/node_repositories.bzl b/internal/node/node_repositories.bzl index 038a7458..fedc43f2 100644 --- a/internal/node/node_repositories.bzl +++ b/internal/node/node_repositories.bzl @@ -347,6 +347,11 @@ def _prepare_node(repository_ctx): is_windows = "_windows_" in repository_ctx.attr.name if repository_ctx.attr.vendored_node: + if not is_windows: + # Introduce a dependency on the vendored node file or workspace. + node_attr = repository_ctx.attr.vendored_node + node_bin = node_attr.relative(":{}/bin/node".format(node_attr.name)) + repository_ctx.read(node_bin) node_path = "/".join([f for f in [ "../../..", repository_ctx.attr.vendored_node.workspace_root,