[Bug]: @nodejs//:node_bin
does not resolve to the correct path in repository_rule
#3809
Labels
@nodejs//:node_bin
does not resolve to the correct path in repository_rule
#3809
What happened?
The label
@nodejs//:node_bin
does not resolve to the correct path to the Node.js binary when used inside ofrepository_rule
. The path I get is:While the correct path (on my system) should be:
Version
Development (host) and target OS/architectures:
Output of
bazel --version
:Version of rules_nodejs, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
How to reproduce
I have created a template repository that can be opened in Github Codespaces here (just click the "Use this template" and "Open in a codespace" buttons): https://github.com/allsey87/nodejs_bazel_mre
Once the Codespace has been built, run:
bazel build //:repository_nodejs
and note the incorrect path printed inside ofbazel-bin/repository_nodejs.txt
.Alternatively, these three files make up the same MRE of the problem:
MODULE.bazel
repository.bzl
BUILD.bazel
The text was updated successfully, but these errors were encountered: