aspect-build / rules_js

High-performance Bazel rules for running Node.js tools and building JavaScript projects
https://docs.aspect.build/rules/aspect_rules_js
Apache License 2.0
310 stars 107 forks source link

[FR]: Example for how to provide a host toolchain #2024

Open manfredlift opened 4 days ago

manfredlift commented 4 days ago

What is the current behavior?

No response

Describe the feature

I'd like to provide a custom host node toolchain, but couldn't figure out the way to do it in bzlmod. For example with go it's very simple with:

go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.host()