-
Notifications
You must be signed in to change notification settings - Fork 522
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 Mac (Darwin arm64) support for local development #3085
Comments
Yes, users need Bazel 4.2.0, but I'm not sure how rules_nodejs has responsibility for that. The other fixes sound right to me, thanks! |
Ah, to clarify: it's to bump the |
@alexeagle Looks like you already began bumping to 4.2.0 a month or so ago: #2926 |
Yup, we have some more work to update our own version of Bazel, but that has no effect on what version users have. It's not transitive. |
@CooperBills I think all the things here are landed, can we close this? |
@alexeagle Although not everything has landed, I'm ok with closing this with the following note: Any contributor working on an M1 Mac will need Bazel 4.2.0+, so this temporary one-line change locally is needed to get things working (until the repo's version is bumped): Index: .bazelversion
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/.bazelversion b/.bazelversion
--- a/.bazelversion (revision d30c366127c208d14d08adb74f4a847f87558c92)
+++ b/.bazelversion (date 1638896444779)
@@ -1,1 +1,1 @@
-4.1.0
+4.2.0 Also, as of this writing, #3088 Has yet to be merged, so any contributor working on an M1 Mac will need to either pick the changes from that branch or temporarily add this one-line hack locally to get Cypress working: Index: toolchains/cypress/BUILD.bazel
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/toolchains/cypress/BUILD.bazel b/toolchains/cypress/BUILD.bazel
--- a/toolchains/cypress/BUILD.bazel (revision d30c366127c208d14d08adb74f4a847f87558c92)
+++ b/toolchains/cypress/BUILD.bazel (date 1638896391246)
@@ -71,7 +71,7 @@
name = "cypress_darwin_toolchain",
target_compatible_with = [
"@platforms//os:osx",
- "@platforms//cpu:x86_64",
+# "@platforms//cpu:x86_64",
],
toolchain = ":cypress_darwin_toolchain_config",
toolchain_type = ":toolchain_type", With those work arounds the repo works quite well with M1's, so I think this ticket can be closed. |
our local .bazelversion file in this repo doesn't affect what happens for users. The other PR is merged now. Thanks! |
Apple M1 Mac (Darwin arm64) support for local development
Description
Currently,
rules_nodejs
fails to build with Apple M1 Macs (Darwin arm64). This issue is to track updates to rules_nodejs to support local development on Macs using M1 processors (Darwin arm64).Changes to enable support:
darwin_arm64-fastbuild
@io_bazel_rules_webtesting//web/versioned:browsers-0.3.2.bzl
to0.3.3
, which includes drivers and browsers for macos arm64 targets (see: feat: add support for darwin m1 browsers bazelbuild/rules_webtesting#427)//packages/concatjs:docs_scrub_platform
to also scrub arm64 platform builds.The above changes enable successful full builds (
bazel build //...
) and testing (bazel test //...
), with ~97% tests passing (the last 3% is because headless firefox is failing with timeouts).I have these changes locally, and will be opening PRs for them in the next day or so.
The text was updated successfully, but these errors were encountered: