Skip to content

fix: prevent EEXIST when overwriting installed skills#76

Open
maxpetrusenko wants to merge 1 commit intonumman-ali:mainfrom
maxpetrusenko:fix/73-overwrite-eexist
Open

fix: prevent EEXIST when overwriting installed skills#76
maxpetrusenko wants to merge 1 commit intonumman-ali:mainfrom
maxpetrusenko:fix/73-overwrite-eexist

Conversation

@maxpetrusenko
Copy link

@maxpetrusenko maxpetrusenko commented Feb 25, 2026

Summary

  • remove existing destination skill directory before copying during install
  • apply this to single-local, specific-subpath, and multi-skill repo installs
  • keep existing path-safety checks in place before any removal

Why

Closes #73. cpSync can throw EEXIST when destination already exists and overwrite is confirmed.

Verification

  • npm run build
  • npx vitest run tests/commands/install.test.ts
  • npx vitest run tests/integration/e2e.test.ts -t "auto-overwrite with -y flag"

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.

[BUG] EEXIST when overwriting an existing skill during installation

1 participant