Skip to content

fix(cli): avoid conflicting symlink entries in user code bundles#1408

Open
timohuovinen wants to merge 3 commits into
mainfrom
timohuovinen/red-713-playwright-bundle-symlinks
Open

fix(cli): avoid conflicting symlink entries in user code bundles#1408
timohuovinen wants to merge 3 commits into
mainfrom
timohuovinen/red-713-playwright-bundle-symlinks

Conversation

@timohuovinen

Copy link
Copy Markdown
Contributor

Affected Components

  • CLI
  • Create CLI
  • Test
  • Docs
  • Examples
  • Other

Summary

Prevents Playwright user code bundles from containing the same path as both a symlink and a directory with child entries.

When selected files include a symlink and files reached through that symlink, the bundler now omits the conflicting symlink entry and archives the selected child files. This produces an archive that GNU tar can extract successfully while leaving symlinks without selected descendants unchanged.

Test Plan

Run from packages/cli:

  • pnpm test src/services/check-parser/__tests__/bundler.spec.ts
  • pnpm exec eslint src/services/check-parser/bundler.ts src/services/check-parser/__tests__/bundler.spec.ts --no-warn-ignored
  • pnpm test

Notes for the Reviewer

The regression test models a pnpm workspace link selected together with files below it and verifies that the generated tar contains the child files but not the conflicting symlink entry.

@timohuovinen timohuovinen requested a review from sorccu July 15, 2026 13:53
@timohuovinen timohuovinen self-assigned this Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant