Closed
Description
What happened?
Packages may contain files or directories containing interesting characters, for example the snowman in @fastify/send tests
Failure when extracting the package:
rules_js/BUILD.bazel:14:22: Extracting npm package @fastify/send@3.3.0 failed: (Exit 1): tar failed: error executing NpmPackageExtract command (from target //:.aspect_rules_js/node_modules/@fastify+send@3.3.0/pkg) external/aspect_bazel_lib~~toolchains~bsd_tar_darwin_arm64/tar --extract --no-same-owner --no-same-permissions --strip-components 1 --file external/_main~npm~npm__at_fastify_send__3.3.0/package.tgz ... (remaining 2 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
tar: Pathname can't be converted from UTF-8 to current locale.
tar: Error exit delayed from previous errors.
Version
bazel 7.4
rules_js 2.1.2
How to reproduce
https://github.com/aspect-build/rules_js/commit/580086b75c825dbc9cbcefe9ebd2f6f531c064ae
Any other information?
No response