the-algorithm icon indicating copy to clipboard operation
the-algorithm copied to clipboard

Workspace file missing

Open MishaTy opened this issue 1 year ago • 3 comments

The bazel BUILD files are useless I think without a bazel file. The following error occurred when trying to run bazel.exe build in the directory: src\scala\com\twitter\simclusters_v2\scalding\embedding\abuse

WARNING: Invoking Bazel in batch mode since it is not invoked from within a workspace (below a directory having a WORKSPACE file).
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
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```

MishaTy avatar Mar 31 '23 22:03 MishaTy

I figured it out. You must create an empty WORKSPACE file at the root of the repo.

MishaTy avatar Mar 31 '23 22:03 MishaTy

Bazel outputs: Your request is correct, but requested an empty set of targets. Nothing will be built. resulting in nothing being built.

MishaTy avatar Mar 31 '23 22:03 MishaTy

Even adding WORKSPACE file to the path of some components is useless.

jyellow avatar Apr 03 '23 12:04 jyellow