-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
_clone_or_update using bash instead of BAZEL_SH #3699
Comments
FYI I believe the workaround is just to use the native |
@alexeagle unfortunately the native rule is broken in interesting ways, thus not really a viable option:
from https://docs.bazel.build/versions/master/be/workspace.html#git_repository |
Fair enough - internally we have an "sso" scheme which requires jgit, so I guess we just have to flip this back and forth depending on the environment. |
I still think, that general purpose rules, and this what I would expect rules_nodejs to be, should just work on both git and jgit and all three major platforms. Gerrit Code Review is currently using custom JS tool chain but in the long run, its Polymer stack should be migrated to use standard JS/NodeJS rules. |
rules_nodejs itself works fine, it's up to the user to put the right
git_repository rule in their WORKSPACE file.
…On Thu, Sep 21, 2017 at 12:45 PM David Ostrovsky ***@***.***> wrote:
I still think, that general purpose rules, and this what I would expect
rules_nodejs to be, should just work on both git and jgit and all three
major platforms. Gerrit Code Review is currently using custom JS tool chain
but in the long run, its Polymer stack should be migrated to use standard
JS/NodeJS rules.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3699 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC5Iycc9NbrEXM5kBVY_CSf8kZuC9xaks5skrzlgaJpZM4PQHnV>
.
|
Any update on this? 0.7 is out and still seems to have this bug. |
ping @dslomov |
I think this can be fixed simply by using |
I'm removing the Windows label because this is a bug in the |
Please provide the following information. The more we know about your system and use case, the more easily and likely we can help.
Description of the problem / feature request / question:
On Windows, the
_clone_or_update
function ingit.bzl
is usingbash
instead ofBAZEL_SH
:bazel/tools/build_defs/repo/git.bzl
Line 25 in 8c86336
This is problematic because
bash
can be other shells, such as Linux Subsystem for Windows, instead of the required MSYS2 shell.If possible, provide a minimal example to reproduce the problem:
Environment info
Operating System: Windows 10
Bazel version (output of
bazel info release
):bazel info release
returns "development version" or "(@Non-Git)", please tell us what source tree you compiled Bazel from; git commit hash is appreciated (git rev-parse HEAD
):Have you found anything relevant by searching the web?
Anything else, information or logs or outputs that would be helpful?
/cc @dslomov @alexeagle
The text was updated successfully, but these errors were encountered: