Compare commits

...

1 commit

Author SHA1 Message Date
workers-sdk factory
e7d281bdb7 test(wrangler): --secrets-file <(...) fails through bin/wrangler.js on macOS (#16425)
On macOS, Node spawns children with POSIX_SPAWN_CLOEXEC_DEFAULT, so the
CLI process that bin/wrangler.js re-spawns receives only the descriptors
listed in its stdio option. A Bash process-substitution path such as
/dev/fd/63 therefore names a closed descriptor in the CLI, and reading
--secrets-file fails.

The tests run bin/wrangler.js from Bash with a preload that emulates the
macOS spawn rule on Linux and reports the platform as darwin, and a
stand-in CLI that prints the secrets file. A regular file is read; the
process-substitution path fails with 'Could not read file: /dev/fd/63'.
2026-11-13 17:07:55 +00:00