Closed ajthom90 closed 3 years ago
Ok, thanks!
Should be released now, in version 1.11.0. Could you follow up this whenever Node.js publishes arm64 builds? Then we could switch back, if that's worth the extra work.
Absolutely. I'll put a reminder on my calendar to check weekly. Thanks for your quick reply on this, I appreciate it!
Uhh sorry but why is this a thing? As of right now, there are native ARM macOS builds available using that exact URL format:
https://nodejs.org/dist/v16.13.1/node-v16.13.1-darwin-arm64.tar.gz
Could you please undo this PR?
Uhh sorry but why is this a thing? As of right now, there are native ARM macOS builds available using that exact URL format
It's because @ajthom90 should check weekly if there was a native arm64 build :wink:
Since when did they start publishing Silicon builds? Maybe we need some version smartness in the plugin, so that it downloads the x64 one for older versions of Node, and arm64 for newer versions of Node.
Since when did they start publishing Silicon builds?
No idea. I just got my M1 macbook last Friday and noticed that this plugin downloads an x86 build, while the standalone node I installed is universal.
Maybe we need some version smartness in the plugin, so that it downloads the x64 one for older versions of Node, and arm64 for newer versions of Node.
Yeah, that makes sense in case someone needs an older version. Maybe I should even send a PR of my own π€
It appears that they have started providing arm64 builds since 16.0.0. That's convenient for comparison. I'll submit a PR.
Huh? It's already done in this exact way in commit 4a63273262e9bc69b9123e0e67885c33e59cc7a3 π€π€π€π€π€
Sorry, I'm stupid. I just needed to update the node version in my pom.xml to something newer.
Huh? It's already done in this exact way in commit 4a63273 π€π€π€π€π€
It's because @ajthom90 should check weekly if there was a native arm64 build π
Haha whoops! Glad that @grishka spotted that this was already fixed! I'd stopped checking for arm64 native node builds because I remembered that commit! Thanks all!
Summary
I have been testing out an Apple Silicon Mac mini. I am using the Azul Zulu arm64 OpenJDK (JDK 8). This change tells the plugin to download the x64 version of Node on macOS, which should run fine under Rosetta.
I'm happy to write up an issue also, if you so desire! Thank you!
Tests and Documentation
When building using Maven on Apple Silicon, I receive an error, as the URL generated by the plugin doesn't work, since there is not currently (as of 12/15/2020) an arm64 version of Node for macOS. So, this uses a simple check when generating the download URL: if the OS is Mac, and the architecture is arm64, download the x64 binary.