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

[Bug] NPM package precompile binaries for linux-arm64 are x64 binaries #235

Closed
YonatanTzuryHud opened this issue Dec 29, 2024 · 3 comments · Fixed by #236
Closed

[Bug] NPM package precompile binaries for linux-arm64 are x64 binaries #235

YonatanTzuryHud opened this issue Dec 29, 2024 · 3 comments · Fixed by #236

Comments

@YonatanTzuryHud
Copy link

As the title describe the linux-arm64 binaries files located at node_modules/tree-sitter after installing tree-sitter from npm are x64 files and not arm64.
Same for the per language libs (tree-sitter-typescript, tree-sitter-python, etc...)

~ file node_modules/tree-sitter/prebuilds/*/tree-sitter.node
node_modules/tree-sitter/prebuilds/darwin-arm64/tree-sitter.node: Mach-O 64-bit bundle arm64
node_modules/tree-sitter/prebuilds/darwin-x64/tree-sitter.node:   Mach-O 64-bit bundle x86_64
node_modules/tree-sitter/prebuilds/linux-arm64/tree-sitter.node:  ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=3f96f2c0a941419495655b5cd2a7728512ba7aba, stripped
node_modules/tree-sitter/prebuilds/linux-x64/tree-sitter.node:    ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=3f96f2c0a941419495655b5cd2a7728512ba7aba, stripped
node_modules/tree-sitter/prebuilds/win32-arm64/tree-sitter.node:  PE32+ executable (DLL) (GUI) Aarch64, for MS Windows
node_modules/tree-sitter/prebuilds/win32-x64/tree-sitter.node:    PE32+ executable (DLL) (GUI) x86-64, for MS Windows
@ObserverOfTime

This comment was marked as outdated.

@YonatanTzuryHud

This comment was marked as outdated.

@ObserverOfTime
Copy link
Member

Better solution: tree-sitter/workflows@0ddf14c. This repo's CI ought to be adapted accordingly.

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 a pull request may close this issue.

2 participants