clang-format icon indicating copy to clipboard operation
clang-format copied to clipboard

Bundle executable for linux_arm64

Open elle-j opened this issue 1 year ago • 5 comments

I'm using an Arm Mac and trying to use this package inside of a Linux container and getting the following error message:

Error: This module doesn't bundle the clang-format executable for your platform. (linux_arm64)
Consider installing it with your native package manager instead.

Expectation:

  • Bundling clang-format executable for linux_arm64 solely using the npm package.
  • Not needing to install clang-format using apt-get.
  • Not needing to uninstall the npm package.

elle-j avatar Apr 05 '23 14:04 elle-j

Furthermore if you are using M1 with docker (so your platform is linux_arm64) AND an alpine base image then it does not appear to be possible to bypass this error by install the clang-format tool using the native package manager (using apk add clang-extra-tools which drops the binary at /usr/bin/clang-format).

ErebusBat avatar Jun 13 '23 04:06 ErebusBat

@ErebusBat, apologies for the late reply. Thanks for getting back, I'll go ahead and close this issue.

elle-j avatar Jul 11 '23 20:07 elle-j

@elle-j I am unsure why did you close the issue?

I was adding a bit more context as I think is valid... we should be able to specify the native executable for linux_arm64

ErebusBat avatar Jul 13 '23 23:07 ErebusBat

Ah, I misinterpreted what you wrote earlier. Thanks for providing some additional context 👍 Yes, would definitely be helpful if this can be fixed.

elle-j avatar Jul 14 '23 00:07 elle-j

Hello. I've developed a new package to succeed clang-format, though the post was written some time ago. If you still need to use clang-format, please feel free to check it out. It supports linux-arm64 and many other architectures.

https://github.com/lumirlumir/npm-clang-format-node

lumirlumir avatar Sep 06 '24 13:09 lumirlumir