Comments (16)
@lbertoncello Thanks ๐. Can you help to test the version
[email protected]
?
@legend80s It's working fine for me now. Thank you!
from git-commit-msg-linter.
this is happening to me too. I installed version 4.7.0 and it's working.
Command: npm install [email protected]
from git-commit-msg-linter.
error: cannot spawn .git/hooks/commit-msg: No such file or directory
but .git/hooks/commit-msg
exits according to you comment ๐ค.
from git-commit-msg-linter.
error: cannot spawn .git/hooks/commit-msg: No such file or directory
but
.git/hooks/commit-msg
exits according to you comment ๐ค.
Yes, that's exactly the issue. I only managed to fix this after rolling back to a previous version.
from git-commit-msg-linter.
E:\Dev\Treinamentos\my-games-list\.yarn\unplugged\git-commit-msg-linter-npm-4.9.2-060e731a8e\node_modules\git-commit-msg-linter\commit-msg-linter.js
does it exists?
from git-commit-msg-linter.
maybe pnp broke it
from git-commit-msg-linter.
I will try to fix it as soon as possible
from git-commit-msg-linter.
E:\Dev\Treinamentos\my-games-list\.yarn\unplugged\git-commit-msg-linter-npm-4.9.2-060e731a8e\node_modules\git-commit-msg-linter\commit-msg-linter.js
does it exists?
Yes, it does
from git-commit-msg-linter.
maybe pnp broke it
That's my guess too
from git-commit-msg-linter.
I will try to fix it as soon as possible
Nice to know! Thank you for your attention!
from git-commit-msg-linter.
Mac
- yarn pnp 1.22.19 v16.19.0 โ
- yarn pnp 3.5.0 v16.19.0 โ
- yarn pnp 3.5.0 v18.15.0 โ
Windows
I don't have a Windows computer, If you have @zanminkian would you like to help to debug this issue? Thanks as always.
โฏ cat .git/hooks/commit-msg
# [email protected] 4/1/2023, 11:44:14 AM
# id=commit-msg-linter - THE id COMMENT SHOULD NOT BE DELETED OR MODIFIED!
# It's used to check whether this commit-msg hook file is created by us,
# if it is then we can remove it confidently on uninstallation.
cat /Users/legend80s/workspace/legend80s/commit-msg-linter-test-pnp-yarn/.yarn/unplugged/git-commit-msg-linter-npm-4.9.2-060e731a8e/node_modules/git-commit-msg-linter/commit-msg-linter.js | node --input-type=commonjs
from git-commit-msg-linter.
@legend80s I'm happy to help, but I use ubuntu and mac only and have no windows neither. I think the reason is that #!/bin/bash
is missing. I created a PR #39 . I hope it works.
from git-commit-msg-linter.
fixed @v4.9.3 @lbertoncello
from git-commit-msg-linter.
fixed @v4.9.3 @lbertoncello
@legend80s It has another issue now. It doesn't show any errors anymore but the script it's not being executed. After some debugging, I think I have found out the cause.
The command being generated on my PC is exactly this one:
cat E:\Dev\my-games-list\.yarn\unplugged\git-commit-msg-linter-npm-4.9.3-a78cfc1a97\node_modules\git-commit-msg-linter\commit-msg-linter.js | node --input-type=commonjs
Since it will run as a bash script (it has #!/bin/bash
after all) it should use '/' to represent the path instead of '\'. I changed it to the following command and now it's working:
cat E:/Dev/my-games-list/.yarn/unplugged/git-commit-msg-linter-npm-4.9.3-a78cfc1a97/node_modules/git-commit-msg-linter/commit-msg-linter.js | node --input-type=commonjs
That being said, I believe it will work fine on Windows after changing the path slash to the Linux standard.
from git-commit-msg-linter.
@lbertoncello Thanks ๐. Can you help to test the version [email protected]
?
from git-commit-msg-linter.
@lbertoncello Thanks ๐. Can you help to test the version
[email protected]
?
Of course
from git-commit-msg-linter.
Related Issues (20)
- Update example message for pt-BR HOT 2
- Run in command line HOT 3
- How to limit the language used by the commit message HOT 4
- Require scope HOT 1
- Option for `validScopes` HOT 1
- feat: `install.js` support `--silent` option HOT 5
- Cannot install with pnpm: sh: .git/hooks/commit-msg: No such file or directory HOT 1
- Lang config on file commitlinterrc.json not working HOT 2
- Suggestion: rename this repo to `git-commit-msg-linter` HOT 1
- Error on version >= 4.8.0 HOT 12
- custom configuration example key not work HOT 1
- Support exclamation mark for breaking change commit HOT 4
- Extract the `commit-msg-linter.js` to a sub-library HOT 2
- Unable to install on node 14 and earlier versions HOT 1
- don't work with bun cli HOT 1
- commit-msg hook doesn't work if bash not installed at `/bin/bash` HOT 5
- Add advanced setting keys & colored output
- Order types alphabetical HOT 2
- viteๅๅปบ็vue้กน็ฎๅ ๆทปๅ git-commit-msg-linterไธ็ๆ? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-commit-msg-linter.