You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whatever combination of "platform" and "toolchain" options I provide, I always end up with "js_image_layer" rule bundling the "darwin_amd64" Node.js instead of "linux_amd64".
This might be related to #883, so it might be Bazel's fault.
Unless your OS/arch matches exactly your target, the only was to use rules_js right now seems to be without bzlmod entriely (trying to keep only JS rules in WORKSPACE.bzlmod) didn't work for me either.
Version
Development (host) and target OS/architectures:
host: macOs 13.5.2 / Intel (amd64)
target: linux / amd64
Output of bazel --version:
aspect 5.7.2
Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file:
Adding a note that a partial bzlmod (excluding only rules_js) still worked for my minimal reproduction here. In this sample, rules_oci was from bzlmod, while rules_js is defined in WORKSPACE.
Putting both on bzlmod didn't work though. See here.
What happened?
I am able to successfully build a working image by adding ":tarball" target to
e2e/js_image_oci
.I tried to do the same on a copy of
e2e/js_image_oci
, but with WORKSPACE converted to bzlmod:lqc@705f927
Whatever combination of "platform" and "toolchain" options I provide, I always end up with "js_image_layer" rule bundling the "darwin_amd64" Node.js instead of "linux_amd64".
This might be related to #883, so it might be Bazel's fault.
Unless your OS/arch matches exactly your target, the only was to use rules_js right now seems to be without bzlmod entriely (trying to keep only JS rules in WORKSPACE.bzlmod) didn't work for me either.
Version
Development (host) and target OS/architectures:
host: macOs 13.5.2 / Intel (amd64)
target: linux / amd64
Output of
bazel --version
:aspect 5.7.2
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:See lqc@705f927
How to reproduce
No response
Any other information?
No response
The text was updated successfully, but these errors were encountered: