Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use Windows junctions for setup links#1943

Open
JonasFocus wants to merge 1 commit into
garrytan:main from
JonasFocus:fix/1877-windows-junction
Open

Use Windows junctions for setup links #1943
JonasFocus wants to merge 1 commit into
garrytan:main from
JonasFocus:fix/1877-windows-junction

Conversation

@JonasFocus

@JonasFocus JonasFocus commented Jun 9, 2026

Copy link
Copy Markdown

Fixes #1877

Summary:

  • Tries mklink /J for Windows directory links before falling back to copies.
  • Keeps file-copy fallback and non-Windows symlink behavior unchanged.
  • Adds regression coverage with fake cmd.exe and cygpath so the junction branch is exercised outside Windows.

Verification:

  • bash -n setup
  • bun test test/setup-windows-fallback.test.ts
  • git diff --check

trunk-io Bot commented Jun 9, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@JonasFocus JonasFocus marked this pull request as ready for review June 9, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Windows: Use Junction (mklink /J) instead of copying to save disk space

1 participant

AltStyle によって変換されたページ (->オリジナル) /