Giter VIP home page Giter VIP logo

Comments (16)

lbertoncello avatar lbertoncello commented on June 9, 2024 1

@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.

alwspiderc avatar alwspiderc commented on June 9, 2024

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.

legend80s avatar legend80s commented on June 9, 2024

error: cannot spawn .git/hooks/commit-msg: No such file or directory

but .git/hooks/commit-msg exits according to you comment ๐Ÿค”.

@lbertoncello

from git-commit-msg-linter.

lbertoncello avatar lbertoncello commented on June 9, 2024

error: cannot spawn .git/hooks/commit-msg: No such file or directory

but .git/hooks/commit-msg exits according to you comment ๐Ÿค”.

@lbertoncello

Yes, that's exactly the issue. I only managed to fix this after rolling back to a previous version.

from git-commit-msg-linter.

legend80s avatar legend80s commented on June 9, 2024

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.

legend80s avatar legend80s commented on June 9, 2024

maybe pnp broke it

from git-commit-msg-linter.

legend80s avatar legend80s commented on June 9, 2024

I will try to fix it as soon as possible

from git-commit-msg-linter.

lbertoncello avatar lbertoncello commented on June 9, 2024

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.

lbertoncello avatar lbertoncello commented on June 9, 2024

maybe pnp broke it

That's my guess too

from git-commit-msg-linter.

lbertoncello avatar lbertoncello commented on June 9, 2024

I will try to fix it as soon as possible

Nice to know! Thank you for your attention!

from git-commit-msg-linter.

legend80s avatar legend80s commented on June 9, 2024

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.

zanminkian avatar zanminkian commented on June 9, 2024

@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.

legend80s avatar legend80s commented on June 9, 2024

fixed @v4.9.3 @lbertoncello

from git-commit-msg-linter.

lbertoncello avatar lbertoncello commented on June 9, 2024

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.

legend80s avatar legend80s commented on June 9, 2024

@lbertoncello Thanks ๐Ÿ‘. Can you help to test the version [email protected]?

from git-commit-msg-linter.

lbertoncello avatar lbertoncello commented on June 9, 2024

@lbertoncello Thanks ๐Ÿ‘. Can you help to test the version [email protected]?

Of course

from git-commit-msg-linter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.