evilmartians/lefthook

Version 1.7.6 fails installation on CI

ipanasenko opened this issue · 4 comments

🔧 Summary

Version 1.7.6 fails installation on CI, 1.7.5. works fine.
I have no issues with 1.7.6 locally on my mac.

We are using yarn 4.3.1.

Lefthook version

1.7.6 efa67f51e6a2d933dc539b2b1364eaade58351b5

Steps to reproduce

🤷‍♂️ Install in on Linux, I guess?

Expected results

Successful installation

Actual results

Installation fails

Possible Solution

🤷‍♂️

Logs / Screenshots

Error I see in our logs:

STDERR /home/builduser/work/61a1e8a640f7a0a3/node_modules/lefthook-linux-x64/bin/lefthook: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/builduser/work/61a1e8a640f7a0a3/node_modules/lefthook-linux-x64/bin/lefthook)

Same seems to happen for v1.7.7. Currently using lefthook with Vercel.

../.. postinstall$ lefthook install
../.. postinstall: /vercel/path0/node_modules/.pnpm/lefthook-linux-x64@1.7.7/node_modules/lefthook-linux-x64/bin/lefthook: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /vercel/path0/node_modules/.pnpm/lefthook-linux-x64@1.7.7/node_modules/lefthook-linux-x64/bin/lefthook)
../.. postinstall: /vercel/path0/node_modules/.pnpm/lefthook-linux-x64@1.7.7/node_modules/lefthook-linux-x64/bin/lefthook: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by /vercel/path0/node_modules/.pnpm/lefthook-linux-x64@1.7.7/node_modules/lefthook-linux-x64/bin/lefthook)
../.. postinstall: Failed

That's bad. I've checked the artifacts and they must not use shared libs. I will try to figure it out. Thank you for submitting an issue.

Guys, my bad, I had a typo and built the lefthook executables with GCO_ENABLED=0 instead of CGO_ENABLED=0. With 1.7.9 version this issue must be resolved.

1.7.9 works for me, thanks!