Skip to content

Commit e909342

Browse files
committed
test(pack): avoid chmod on linked Node fixture
Only chmod the copied fallback so a successful hard link does not try to change the CI-owned Node inode. Generated-By: looper 0.11.8 (runner=fixer, agent=codex)
1 parent c1ea0fb commit e909342

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/pack/tests/web-standalone-after-pack.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ async function writeHyperframesRuntimeFixture(options: {
104104
await link(process.execPath, bundledNodePath);
105105
} catch {
106106
await copyFile(process.execPath, bundledNodePath);
107+
// A successful hard link may share a CI-owned inode that the test user cannot chmod.
108+
await chmod(bundledNodePath, 0o755);
107109
}
108-
await chmod(bundledNodePath, 0o755);
109110
}
110111

111112
async function writePnpmLinkedPackage(standaloneRoot: string, packageName: string): Promise<string> {

0 commit comments

Comments
 (0)