-
-
Notifications
You must be signed in to change notification settings - Fork 159
#2261 Fix npm_deps tests on Windows, add a fix for Bazel 9.0.0 #2700
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?
#2261 Fix npm_deps tests on Windows, add a fix for Bazel 9.0.0 #2700
Conversation
|
|
|
|
|
||
| function sandboxAssert() { | ||
| if (!/-sandbox\/\d+\/execroot\//.test(__filename)) { | ||
| if (!/[/\\]execroot[/\\]/.test(__filename)) { |
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.
If these tests are broken on Windows let's exclude them on Windows, not break the test
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.
Sorry, added an if statement that uses the proper regex per OS
| # Seems like it won't be cherry picked: https://github.com/bazelbuild/bazel/issues/27607 | ||
| # Added in commit https://github.com/bazelbuild/bazel/commit/b9bbda939cddab807e34559cb7ee798febfa3861 | ||
| # If a backport happens this version just needs to be lowered to the 8.x version that has the backport | ||
| _SUPPORTS_SYMLINK_TARGET_TYPE = ge("9.0.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.
It would be good to add this to bazel_features instead of depending on internals of it.
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.
opened a PR for the addition: bazel-contrib/bazel_features#124




Bazel 8.x is not compatible with Windows at the moment due to: bazelbuild/bazel#26701.
This branch fixes some common Windows issues so that the bug formentioned can be observed at all.
Then it introduces a fix for Bazel 9.0.0+ where the needed attribute is present.
Bazel 8.x will not work with rules_js until the fix is backported.
For now this seems unlikely: bazelbuild/bazel#27607
Fixes: #2261
Changes are visible to end-users: no
Test plan