Skip to content

fix: use junction type on Windows for skills symlinks#4

Merged
ShawInnes merged 1 commit intomainfrom
claude/elated-wescoff
Mar 6, 2026
Merged

fix: use junction type on Windows for skills symlinks#4
ShawInnes merged 1 commit intomainfrom
claude/elated-wescoff

Conversation

@ShawInnes
Copy link
Copy Markdown
Owner

Changes

Update skillsInstall.ts to use junction-type symlinks for directories on Windows to avoid EPERM errors.

Details

  • Check if the symlink target is a directory using fs.statSync()
  • Use 'junction' type for directory symlinks on Windows (process.platform === 'win32')
  • Junctions don't require elevated privileges or Developer Mode, unlike regular directory symlinks
  • Other platforms and file symlinks continue to use default symlink behavior

@ShawInnes ShawInnes merged commit 87d4371 into main Mar 6, 2026
2 checks passed
@ShawInnes ShawInnes deleted the claude/elated-wescoff branch March 6, 2026 12:54
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