-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use external repo as vendored_node #464
Comments
Hi @mboes did you find a way to get this working? I would also like to use the nix provided binaries, but am running into your same issue. Thanks in advanced! |
Here's the code we use currently rules_haskell: https://github.com/tweag/rules_haskell/blob/master/WORKSPACE#L246-L297. That code works around this bug in a way that also works around bazelbuild/bazel#2927, using a Nix derivation that wraps the actual Nix derivation for NodeJS. |
Thank you very much @mboes ! That did the tick for me 👍 |
Oops! Almost reopened the same issue. Pasting the report, for posterity (which is along the lines of @mboes 's) For example, the repository I vendor from is I needed to transform the repository and introduce an additional Related path construction rules are around https://github.com/bazelbuild/rules_nodejs/blob/7e3e6be38e1cf3c6c99d8dc8829377a2beacbb53/internal/node/node_repositories.bzl#L329. I could solve it, but would be convenient if changing the repo layout would not be needed. Thank you! |
This issue has been automatically marked as stale because it has not had any activity for 90 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
This issue was automatically closed because it went two weeks without a reply since it was labeled "Can Close?" |
dupe of #2019 |
🐞 bug report
Affected Rule
The issue is caused by the rule: node_repositories().Is this a regression?
NoDescription
I'd like to use NodeJS from Nixpkgs. Using rules_nixpkgs, I can map the Nixpkgs package for NodeJS to a Bazel external repository. This repository has the following content:
To use this, I say:
in my WORKSPACE file. But this doesn't work.
🔬 Minimal Reproduction
Checkout https://github.com/mboes/rules_nodejs/commit/72caa8a90653f5a1d66895bcd20a0de9210f2b29. Then
🔥 Exception or Error
Notice how the above is looking for
external/somedir/somedir/bin/node
when the binary (just an empty file in the repro) is actually atexternal/somedir/bin/node
. I could modify rules_nixpkgs to add a symlink calledexternal/somedir/somedir
that points toexternal/somedir
for anysomedir
external repo it creates, but then I run into bazelbuild/bazel#2927.🌍 Your Environment
Operating System:
Output of
bazel version
:Rules version (SHA):
The text was updated successfully, but these errors were encountered: