Skip to content

Windows: "bazel run" requires Bash [blocking #4319] #8229

Closed

Description

@laszlocsomor

Description of the problem / feature request:

"bazel run" requires Bash, doesn't work with --shell_executable=.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

BUILD:

cc_binary(
    name = "x",
    srcs = ["x.cc"],
)

x.cc:

int main() { return 0; }
bazel run --shell_executable= //:x
(...)
INFO: Build completed successfully, 6 total actions
ERROR: the "run" command needs a shell; use the --shell_executable=<path> flag to specify its path, INFO: Build completed successfully, 6 total actions

What operating system are you running Bazel on?

Windows 10

What's the output of bazel info release?

0.25.0 release

Have you found anything relevant by searching the web?

This is a sub-issue of #6462, and a blocker for #4319.

Activity

  1. added
    area-Windows
    untriaged
    on May 3, 2019
  2. added
    P1
    and removed
    untriaged
    on May 6, 2019
  3. changed the title [-]Windows: "bazel run" requires Bash[/-] [+]Windows: "bazel run" requires Bash [blocking #4319][/+] on May 6, 2019
  4. added
    P2
    and removed
    P1
    on Jul 8, 2019
  5. laszlocsomor commented on Dec 2, 2019

    @laszlocsomor
    ContributorAuthor

    Bazel 1.0 fixed this, see #8241.

  6. added
    team-OSS
    on Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2area-Windowsteam-OSStype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions