-
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
fix(runfiles): use normalized paths when guarding runfiles root and node_modules on Windows #3331
fix(runfiles): use normalized paths when guarding runfiles root and node_modules on Windows #3331
Conversation
…ode_modules on Windows
Windows CI Failure is already present on stable, not introduced here... |
af06993
to
f80bacb
Compare
These failures @alexeagle
|
@alexeagle can we get this one in? 😃 |
oops sorry it missed today's release!! we finally greened up HEAD again... |
@alexeagle do you think we can backport this into 4.x? I think it is important to have that fix there too. |
sure can you send a PR against the 4.x branch? I'll merge and release a patch |
…ode_modules on Windows (bazel-contrib#3331) * fix(runfiles): use normalized paths when guarding runfiles root and node_modules on Windows * refactor(builtin): run new code path only on Windows
I've opened the PR 👍 |
… and node_modules on Windows (#3409) * fix(runfiles): use normalized paths when guarding runfiles root and node_modules on Windows (#3331) * fix(runfiles): use normalized paths when guarding runfiles root and node_modules on Windows * refactor(builtin): run new code path only on Windows * chore(builtin): test ci * Revert "chore(builtin): test ci" This reverts commit 8790485. * chore(builtin): cherry-pick 8606c50 * docs(builtin): do not change unnecessary docs for this PR purpose Co-authored-by: Paul Gschwendtner <paulgschwendtner@gmail.com>
… and node_modules on Windows (#3409) * fix(runfiles): use normalized paths when guarding runfiles root and node_modules on Windows (#3331) * fix(runfiles): use normalized paths when guarding runfiles root and node_modules on Windows * refactor(builtin): run new code path only on Windows * chore(builtin): test ci * Revert "chore(builtin): test ci" This reverts commit 8790485. * chore(builtin): cherry-pick 8606c50 * docs(builtin): do not change unnecessary docs for this PR purpose Co-authored-by: Paul Gschwendtner <paulgschwendtner@gmail.com>
PR Checklist
Please check if your PR fulfils the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behaviour?
After #3060 being merged in order to fix a linker problem the paths we collecte to guard the
runfiles
and therunfiles node_modules
at https://github.com/bazelbuild/rules_nodejs/blob/stable/internal/node/launcher.sh#L237 are crashing the node resolution when running on Windows as it is using non normalized paths.What is the new behaviour?
That PR makes sure we normalize the collected paths on Windows so that we can later build a correct
BAZEL_PATCH_ROOTS
.Does this PR introduce a breaking change?
Other information
Closes #3054 and fixes the build node_modules resolutions when on Windows.