Skip to content

[9.3.0] Improve error message outside of workspace (https://github.com/bazelbuild/bazel/pull/30280) - #30302

Open
bazel-io wants to merge 2 commits into
bazelbuild:release-9.3.0from
bazel-io:cp30280-9.3.0-141953
Open

[9.3.0] Improve error message outside of workspace (https://github.com/bazelbuild/bazel/pull/30280)#30302
bazel-io wants to merge 2 commits into
bazelbuild:release-9.3.0from
bazel-io:cp30280-9.3.0-141953

Conversation

@bazel-io

Copy link
Copy Markdown
Member

Before:

WARNING: Invoking Bazel in batch mode since it is not invoked from within a workspace (below a directory having a MODULE.bazel 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 MODULE.bazel file).
See documentation at https://bazel.build/concepts/build-ref#workspace

After:

ERROR: Bazel must be invoked from within a workspace (below a directory having a MODULE.bazel file).
See documentation at https://bazel.build/concepts/build-ref#workspace

Closes #30280.

PiperOrigin-RevId: 948955963
Change-Id: Ic74ce9faff209f6b58c44de251b829d06aec1d3e

Commit a987dfc

Before:

```
WARNING: Invoking Bazel in batch mode since it is not invoked from within a workspace (below a directory having a MODULE.bazel 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 MODULE.bazel file).
See documentation at https://bazel.build/concepts/build-ref#workspace
```

After:

```
ERROR: Bazel must be invoked from within a workspace (below a directory having a MODULE.bazel file).
See documentation at https://bazel.build/concepts/build-ref#workspace
```

Closes bazelbuild#30280.

PiperOrigin-RevId: 948955963
Change-Id: Ic74ce9faff209f6b58c44de251b829d06aec1d3e
@bazel-io
bazel-io requested a review from a team as a code owner July 16, 2026 14:20
@bazel-io bazel-io added team-Rules-CPP Issues for C++ rules awaiting-review PR is awaiting review from an assigned reviewer labels Jul 16, 2026
@bazel-io
bazel-io requested review from fmeum and meisterT July 16, 2026 14:20
@iancha1992
iancha1992 requested review from Wyverald and removed request for fmeum July 16, 2026 17:25
@iancha1992
iancha1992 enabled auto-merge July 20, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Rules-CPP Issues for C++ rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants