-
Notifications
You must be signed in to change notification settings - Fork 84
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
Add nodejs toolchain #222
Add nodejs toolchain #222
Conversation
ae2684d
to
413097c
Compare
I'm still working on this. currently i'm stuck at it running into |
413097c
to
022d217
Compare
thanks to @chancila i figured out that only a setting in |
Hi @betaboon , thank you for your contribution! Are you still working on it or do you need some assistance? |
@avdv I'm still working on this. planning to get the documentation ready in the next couple days. i could need some assistance on the issue of the required if there are any other pointers to get this in a ready state I'd gladly integrate them |
Hi @betaboon , sorry for the long delay. I had a look at this again. Also, I rebased onto master and added a missing dependency. An example for the toolchain would be nice to have. Thank you! |
070f566
to
2f0be41
Compare
@avdv sorry for the long silence. i just rebased against master, included your changes, updated the nodejs and nixpkgs rules, added an example. i think this is now fine and ready :) |
Oh, I missed this update over the course of my holidays... I'm taking a look now. |
2f0be41
to
9d209dc
Compare
i just rebased against master |
core/.bazelrc
Outdated
@@ -1,4 +1,5 @@ | |||
build --host_platform=@rules_nixpkgs_core//platforms:host | |||
build --extra_execution_platforms=@io_tweag_rules_nixpkgs//nixpkgs/platforms:host |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why this is necessary? I commented it out and everything seemed to be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, after reverting the commit, CI was all green: https://github.com/tweag/rules_nixpkgs/actions/runs/3095774582
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iirc back then it failed to pick up the toolchain. i had some longer discussion in slack with someone that lead me to find this was required. maybe things changed since then ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, so let's skip this setting for now, we can add it back later if we see it's required.
218f741
to
cd2e3b0
Compare
``` ERROR: /private/var/tmp/_bazel_runner/a4a3182e50c9460fa52b8c6c1e6f916f/sandbox/processwrapper-sandbox/9/execroot/io_tweag_rules_nixpkgs/bazel-out/darwin-fastbuild/bin/tests/run-test-invalid-nixpkgs-package.runfiles/io_tweag_rules_nixpkgs/WORKSPACE:20:27: fetching local_repository rule //external:rules_nixpkgs_nodejs: java.io.IOException: The repository's path is "./toolchains/nodejs" (absolute: "/private/var/tmp/_bazel_runner/a4a3182e50c9460fa52b8c6c1e6f916f/sandbox/processwrapper-sandbox/9/execroot/io_tweag_rules_nixpkgs/bazel-out/darwin-fastbuild/bin/tests/run-test-invalid-nixpkgs-package.runfiles/io_tweag_rules_nixpkgs/toolchains/nodejs") but it does not exist or is not a directory. ERROR: no such package '@rules_nixpkgs_nodejs//': The repository's path is "./toolchains/nodejs" (absolute: "/private/var/tmp/_bazel_runner/a4a3182e50c9460fa52b8c6c1e6f916f/sandbox/processwrapper-sandbox/9/execroot/io_tweag_rules_nixpkgs/bazel-out/darwin-fastbuild/bin/tests/run-test-invalid-nixpkgs-package.runfiles/io_tweag_rules_nixpkgs/toolchains/nodejs") but it does not exist or is not a directory. ```
Thank you, again! @betaboon |
No description provided.