Skip to content
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

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

Closed
meteorcloudy opened this issue Aug 16, 2018 · 1 comment
Closed
Assignees
Labels
P2 We'll consider working on this in future. (Assignee optional) team-Bazel General Bazel product/strategy issues type: bug

Comments

@meteorcloudy
Copy link
Member

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

@cvcal
Copy link
Contributor

cvcal commented Aug 16, 2018

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

@aiuto aiuto added the team-Bazel General Bazel product/strategy issues label Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 We'll consider working on this in future. (Assignee optional) team-Bazel General Bazel product/strategy issues type: bug
Projects
None yet
Development

No branches or pull requests

3 participants