OpenBeta / open-tacos

Rock climbing route catalog (openbeta.io)
https://openbeta.io
GNU Affero General Public License v3.0
143 stars 126 forks source link

Git commit hook is hanging forever - first time commiting. #268

Open nadr0 opened 2 years ago

nadr0 commented 2 years ago

Issue

I followed the setup instructions for the first time from the README.md. I've committed some code and this is hanging forever.

Test Suites: 8 passed, 8 total
Tests:       13 passed, 13 total
Snapshots:   0 total
Time:        2.574 s
Ran all test suites.
Done in 3.88s.
yarn run v1.22.4
$ next build
info  - Loaded env from <my-windows-path>\open-tacos\.env
info  - Checking validity of types...
warn  - No ESLint configuration detected. Run next lint to begin setup
info  - Creating an optimized production build...

It hangs on info - Creating an optimized production build...

Any ideas?

I am on Windows.

vnugent commented 2 years ago

I don't have a fix. Here's a workaround:

  1. When you're ready to commit, run yarn lint and fix all errors if any.
  2. Add --no-verify flag to git commit: git commit --no-verify -am "commit message"
  3. git push origin <your-branch>