-
-
Notifications
You must be signed in to change notification settings - Fork 147
chore: add dependencies for Windows arm64 #2276
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
base: main
Are you sure you want to change the base?
Conversation
|
09e55e5
to
b19e60e
Compare
afe0e82
to
4a38423
Compare
MODULE.bazel
Outdated
bazel_dep(name = "bazel_skylib", version = "1.5.0") | ||
bazel_dep(name = "platforms", version = "0.0.5") | ||
bazel_dep(name = "rules_nodejs", version = "6.3.0") | ||
bazel_dep(name = "rules_nodejs", version = "6.5.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we avoid changing the minimum version here and only update the tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6.5.0 is the first version to introduce nodejs_windows_arm64
support. I'm not sure it's possible to add this without bumping the version in this file (see use_repo(node, "nodejs_windows_arm64")
below). Or is there a way we could add this support without having to bump the version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your repository requiring nodejs_windows_arm64
can declare whatever version you want, but I'd prefer avoiding forcing everyone to upgrade...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah sorry, I just tested without adding nodejs_windows_arm64
(as well as bumping the rules_nodejs
version) and it indeed works fine.
I'm working on bringing Windows arm64 support to aspect-cli
(draft PR here). The CI tests are failing with:
Error in path: Unable to load package for @@[unknown repo 'yq_windows_arm64' requested from @@aspect_rules_js~]//:yq.exe: The repository '@@[unknown repo 'yq_windows_arm64' requested from @@aspect_rules_js~]' could not be resolved: No repository visible as '@yq_windows_arm64' from repository '@@aspect_rules_js~'
So just adding yq_windows_arm64
should be enough already. Just updated this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A version bump on aspect_bazel_lib
is actually required for yq_windows_arm64
support. Otherwise, CI fails with:
ERROR: module extension "toolchains" from "@@aspect_bazel_lib~//lib:extensions.bzl" does not generate repository "yq_windows_arm64", yet it is imported as "yq_windows_arm64" in the usage at /mnt/ephemeral/workdir/aspect-build/rules_js/MODULE.bazel:40:37 (did you mean 'yq_windows_amd64'?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the bazel_lib
version bump is causing the tests to fail on Bazel 6.
I'm not sure how to proceed now. I'd love to get things to work by adding yq_windows_arm64
, but looks like I'll need some support in getting that done. I'm not sure if Bazel 6 is still supposed to be supported, and I don't want to break things for folks. WDYT?
c4afb4b
to
5fdc493
Compare
Some dependencies are missing for
windows_arm64
, resulting in failing builds like this one:Upstream supports arm64 already, so we just have to add it here.
Changes are visible to end-users: yes/no
Test plan