Closed artptr closed 7 years ago
Fixes merge issues with #29
@tarmolov any update on merging Windows compatibility?
It'd be a great to add windows support to the library but I have three concerns about this and #29 prs:
spawn
looks hacky and doesn't cover all cases (I've compared it with cross-spawn library); adding partial support doesn't look as a good stepThis is good feedback. Looking back at the changes, they can be cleaned up a lot. Respectively,
isExecutable()
, but at the same time make it Windows-compatible.cross-spawn
is unlikely to solve the issues related to spawning in the majority of cases. Commands like exec('git check-ignore ')
would still require git
to be in the PATH, which by default it is not. It may be worth testing to verify those statements.Any progress on this?
Nope.
I can merge it as an experimental feature but I cannot guarantee that git-hooks
will work fine on windows. See my comment above https://github.com/tarmolov/git-hooks-js/pull/38#issuecomment-271422549
Sorry for the huge delay with decision about Windows support. I decided keep support only for Unix and macOS. I can guarantee expected behaviour only on this platforms.
And again I want to say sorry about negative decision.
No worries, I completely understand. Windows users can use my fork, I will update and maintain, time allowing.
I can add a link to your fork in README file.
Sounds good!
Let me know when you publish a first version.
There are a few PRs offering Windows support (see #11, #29, #38, #52 and your own #51) but it's unlikely that these will be merged, see tarmolov's comment here. Check out Husky, it's a very active project which allows you to set up git hooks in your package.json file. It supports OSX, linux and Windows and has support for a few other hooks which git-hooks-js does not.
Original pull request is https://github.com/tarmolov/git-hooks-js/pull/29 by @codebling Just resolved a merge conflict.