Skip to content
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

use a glibc 2.17 compatible node20 build on x86_64 (better idea inside!) #3128

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

reaperhulk
Copy link

@reaperhulk reaperhulk commented Feb 5, 2024

GitHub uses official nodejs.org builds in most cases, but also uses the "unofficial node" builds (which are also supplied by node.js) for win-arm64. This PR uses the unofficial node.js build for 20.x that links against glibc 2.17. This restores compatibility with older Linux distributions (CentOS7) that are still commonly in use.

While this "fixes" the problem for x86_64, the issue also exists for AArch64, and the correct solution is actually for GH to produce its own node builds using the --fully-static flag. GitHub could produce --fully-static builds for Linux x86_64 and AArch64 and then they would no longer need to worry about this problem (both old distributions and alpine).

Considering you're already building musl node builds via https://github.com/actions/alpine_nodejs please consider just altering this to use --fully-static, adding AArch64, and then using those binaries in all cases. To demonstrate this I've forked that repo and built a fully static node.js (diff) which runs on all glibc distributions as well.

refs: #2906

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant