fix: report untracked legacy symlinks

This commit is contained in:
2026-07-11 23:37:25 +08:00
parent 530fcdd2b7
commit 53d372e29b
4 changed files with 12 additions and 7 deletions
@@ -48,14 +48,16 @@ describe("legacy project manifest builder", () => {
}]);
});
it("rejects symlinked entries instead of silently omitting them", async () => {
it("reports untracked symlinked entries instead of silently omitting them", async () => {
const root = await mkdtemp(join(tmpdir(), "cph-legacy-manifest-link-"));
temporaryRoots.push(root);
await symlink("/tmp", join(root, "linked-project"));
await expect(execute(process.execPath, [
const result = await execute(process.execPath, [
resolve("deploy/build_legacy_project_manifest.mjs"),
root,
])).rejects.toMatchObject({ stderr: expect.stringContaining("rejects symbolic link") });
]);
expect(result.stderr).toContain("skip untracked symbolic link");
expect(JSON.parse(result.stdout)).toEqual([]);
});
});