Open Zemnmez opened 8 months ago
It looks like I was able to work around this by making an npm_package
, and then creating a js_binary
of that.
Yes, this is why we have js_image_layer
because rules_js is really sensitive to symlinks, https://github.com/bazel-contrib/bazel-lib/pull/967 is my incomplete yet daring stab at fixing this, it's not even there yet.
What happened?
I tried to make a tar of a
js_binary
fromaspect_rules_js
. It failed because thenode_modules
deps seem to have some incorrectly set filetypes in their mtree.Instead we get this error:
Version
Development (host) and target OS/architectures:
Output of
bazel --version
:bazel 7.1.0
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
How to reproduce
Any other information?
Workaround
Make an
npm_package
and wrap it injs_binary
.