-
Notifications
You must be signed in to change notification settings - Fork 519
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
Apple M1 ARM64 - Detection issues #3438
Comments
Could you try with a more recent version? It looks like I removed that code in January for 5.0 |
@alexeagle Yep, looks like you're correct, unable to reproduce this behaviour post 5.x release. Although, should this be handled under 4.x for LTS purposes? |
i'm similarly curious if this can be pulled into |
@loudmouth Not sure if that will ever happen, but you could always include a patch file with the changes that I outlined in the initial post http_archive(
name = "build_bazel_rules_nodejs",
patch_args = ["-p1"],
patches = ["//patches:rules_nodejs.patch"],
...
) |
This issue has been automatically marked as stale because it has not had any activity for 6 months. It will be closed if no further activity occurs in 30 days. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
This issue was automatically closed because it went 30 days without any activity since it was labeled "Can Close?" |
🐞 bug report
Affected Rule
Any
nodejs
targetIs this a regression?
N/A
Description
launcher.sh occasionally incorrectly detects
arm64
asx86_64
🔬 Minimal Reproduction
Invoke any
nodejs
target. Can't pin down how or when it occurs, resolves itself on cache clean🔥 Exception or Error
When adding some logging to see what arch was being detected I was quite surprised to find out the result of
uname -m
(x86_64 😮)Running any
node
target with some added debugging to output the reported arch:Running via shell
I'm assuming that some portion of the toolchain causes rosetta to be required
Example:
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_nodejs version:
Anything else relevant?
Thankfully
uname -v
still reports the kernel version asARM64
.$ arch -x86_64 uname -v Darwin Kernel Version 21.4.0: Mon Feb 21 20:35:58 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T6000
So, here is the patch I used to resolve my issue, it checks
uname -v
for the existence ofARM64
& falls back to the original check:The text was updated successfully, but these errors were encountered: