Skip to content

Running Bazel outside of workspace doesn't show correct error message #5906

Closed

Description

@meteorcloudy
pcloudy@pcloudy0-w MSYS /home
$ bazel-0.14.0 build
ERROR: The 'build' command is only supported from within a workspace.

pcloudy@pcloudy0-w MSYS /home
$ bazel-0.15.0 build
ERROR: The 'build' command is only supported from within a workspace.
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".

pcloudy@pcloudy0-w MSYS /home
$ bazel-head build
Assertion failed: !workspace.empty(), file src/main/cpp/option_processor.cc, line 261

I believe this is caused by ec83598
@cvcal

Activity

  1. added
    P2
    on Aug 16, 2018
  2. cvcal commented on Aug 16, 2018

    @cvcal
    Contributor

    Good catch, looks like we're missing some test coverage!

  3. added
    team-Bazel
    on Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2team-Bazeltype: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions