Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cli/scripts/verify-temp-cleanup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ const run = (probeRoot) => new Promise((resolve, reject) => {
});
});

const probeRoot = await mkdtemp(join(tmpdir(), 'commonly-cli-temp-guard-'));
// Short root on macOS on purpose: the provider-proxy tests bind Unix sockets
// under the probe TMPDIR, and macOS caps a socket path at ~104 bytes, so the
// deep $TMPDIR there makes them fail with EINVAL. Elsewhere the default is fine.
const probeBase = process.platform === 'darwin' ? '/tmp' : tmpdir();
const probeRoot = await mkdtemp(join(probeBase, 'commonly-cli-temp-guard-'));
try {
for (let pass = 1; pass <= 2; pass += 1) {
const before = await snapshot(probeRoot);
Expand Down
Loading