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
windows: use default msys64 root #21984
Conversation
cc: @tjgq @jayconrod as I guess the path was picked from the conversation in #18584 |
On Windows, msys2 is always installed to `C:\msys64` path by default(1). Current users would have to override this with this flag ``` common:windows --shell_executable=c:/msys64/usr/bin/bash.exe ``` Let's use the correct default instead for a better Out-of-the-box UX. (1): https://github.com/search?q=org%3Amsys2+%2Fc%3A.*msys64%2F&type=code&p=1
557e1a3
to
c57fe49
Compare
I remember not having to set that flag on GitHub Actions Windows runners. Do you happen to know why? Do they use a different default path? |
Good question. From their image it seems like they used the standard path. https://github.com/actions/runner-images/blob/2530c697b5ca66ec6da5aa22f09cf7887bdc644c/images/windows/scripts/build/Install-Msys2.ps1#L33 I will check what did Bazel pick up in the actual action 🤔 |
Looks like some level of test cleanup is needed. I've reassigned this to @meteorcloudy because he has more windows knowledge than I do, and may know better why these values were chosen and have been working. |
I believe the reason we chose And Bazel should be able to locate the msys2 bash.exe in the client: https://cs.opensource.google/bazel/bazel/+/master:src/main/cpp/blaze_util_windows.cc;l=1251-1268 I'm not sure this is needed. Maybe we just need to fix |
ah interesting that The "new" official Windows package manager is also putting it under For Bazel-CI, and other I discovered this while deploying our RBE worker on an environment setup with |
Good to know, yeah, I guess |
Im ok with leaving this change for HEAD + Bazel 8 👍 |
+1 for I don't remember needing to set |
Either Personally, I think the flag is nicer to have inside |
@jayconrod after a bit more reading, it seems like I raised #21988 so that we could discuss it separately. |
I'm deploying bazelbuild/continuous-integration#1944 and will rerun the failed windows jobs after that. |
On Windows, msys2 is always installed to
C:\msys64
path by default(1).Current users would have to override this with this flag
Let's use the correct default instead for a better Out-of-the-box UX.
(1): https://github.com/search?q=org%3Amsys2+%2Fc%3A.*msys64%2F&type=code&p=1