-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0.1 release results in segfault on M1 mac #283
Comments
Hi @michaeldbianchi! Thank you for reporting! Could you provide your |
I tried paring it down as much as possible. Looks like it's due to anchors? Anyhow, I won't speculate further. I can reproduce it with this # Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md
reconciliation: &reconciliation
piped: true
1_yarn:
tags: reconciliation
files: git diff --name-only HEAD main
glob: '{package.json,yarn.lock}'
run: make install_js_packages
tags: frontend dependencies
2_gem:
tags: reconciliation
files: git diff --name-only HEAD main
glob: '{GEMFILE,GEMFILE.lock}'
run: make bundle
tags: backend dependencies
post-checkout:
commands: *reconciliation
post-merge:
commands: *reconciliation
post-rewrite:
commands: *reconciliation |
I've checked it locally and I see 2 problems here:
You can use this config for example. It will behave the same way: # Refer for explanation to following link:
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md
reconciliation: &reconciliation
1_yarn:
tags: reconciliation
files: git diff --name-only HEAD main
glob: '{package.json,yarn.lock}'
run: make install_js_packages
tags: frontend dependencies
2_gem:
tags: reconciliation
files: git diff --name-only HEAD main
glob: '{GEMFILE,GEMFILE.lock}'
run: make bundle
tags: backend dependencies
post-checkout:
commands: *reconciliation
post-merge:
commands: *reconciliation
post-rewrite:
commands: *reconciliation By default lefthook works as if |
Will release the fix soon! |
I tried installing lefthook on a new m1 mac and ran into segfaults on every command.
I've installed it via brew, rubygems, go, and by directly downloading the binary for the ARM macs.
I just downgraded to 0.8.0 and that version is working just fine for me. Happy to help debug if you need additional information. Otherwise, this is out of my wheelhouse to look into myself.
The text was updated successfully, but these errors were encountered: