bazel icon indicating copy to clipboard operation
bazel copied to clipboard

`bazel build src/tools/execlog:parser` fails

Open andportnoy opened this issue 2 weeks ago • 0 comments

Page link:

https://bazel.build/remote/cache-remote#compare-logs

Problem description (include actual vs expected text, if applicable):

Instructions on the linked page suggest running bazel build src/tools/execlog:parser, but that fails with an error:

$ bazel build src/tools/execlog:parser
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
.bazelrc
WARNING: Invoking Bazel in batch mode since it is not invoked from within a workspace (below a directory having a WORKSPACE file).
ERROR: The 'build' command is only supported from within a workspace (below a directory having a WORKSPACE file).
See documentation at https://bazel.build/concepts/build-ref#workspace

Seems to be related to the removal of the WORKSPACE file: https://github.com/bazelbuild/bazel/pull/22657.

Where do you see this issue? (include link to specific section of the page, if applicable)

No response

Any other information you'd like to share?

$ bazel --version
bazel 6.1.2

andportnoy avatar Jun 29 '24 22:06 andportnoy