kilianc / kilianc/shared-git-hooks
Don't fail with EEXISTS if symlinks already exist and point to the right places
- Dominant language
- JavaScript
- Stars
- 55
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
Steps to repro:
1. `cd` to a git repo containing a node.js project
1. `npm i --save-dev shared-git-hooks` in a git repo that's never had `shared-git-hooks`
1. Observe correct symlinks created in `.git/hooks`
1. `rm -rf node_modules`
1. `npm i`
1. Observe `EEXISTS` errors
If the symlinks exist & point to the correct locations for `shared-git-hooks`, don't fail, either warn or continue silently. If as few as one of the symlinks points to the wrong place, fail, or just warn.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue using the npm install sequence and inspect the symlinks in .git/hooks after removing node_modules. Done means reinstalling shared-git-hooks succeeds when existing symlinks point to the correct locations, while incorrect symlinks produce the requested failure or warning behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, javascript, node.js
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100