Docs: run/build.mdx describes a sandboxing warning removed in 2017 and a flag deleted in 9.0.0

Open Beginner friendly
#31,316 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@lavishdev is already working on this.

Since Sep 25, 2026.

  • #31332 by @lavishdev — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
build-system

Research direction

Start with docs/run/build.mdx and compare the corresponding 9.0.0 and 9.1.0 versioned pages; read docs/run/sandboxing.mdx for the current fallback description. Remove or update the obsolete warning and flag paragraph so the documentation matches current Bazel behavior and points readers to the existing sandboxing guidance.

Written by the indexing model from the issue text.

Description

help wanted P2 team-Documentation team-OSS type: bug

docs/run/build.mdx, at 7a5be08 and on bazel.build on 2026-09-24, says: "Bazel will print a warning if your system does not support sandboxing to alert you to the fact that builds are not guaranteed to be hermetic and might affect the host system in unknown ways. To disable this warning you can pass the --ignore_unsupported_sandboxing flag to Bazel."

The warning was removed in 0c613be in April 2017. The flag lived on as a no-op until e887cfbfd641 removed it from master in November 2025, "Delete a no-op flag (--ignore_unsupported_sandboxing) and documentation referencing it", cherry-picked to 9.0.0 as #27747. build.mdx was not part of that change. The paragraph is also in the 9.0.0 and 9.1.0 versioned docs.

Bazel 9.2.0 rejects the flag before building anything:

ERROR: --ignore_unsupported_sandboxing :: Unrecognized option: --ignore_unsupported_sandboxing

On Linux (Debian 13, kernel 6.12), with user namespaces unavailable to Bazel because I ran it inside bwrap --unshare-user --disable-userns, 9.2.0 fell back to processwrapper-sandbox and printed no warning in the console. The process summary named processwrapper-sandbox instead of linux-sandbox, and the server's java.log had one warning-level line. The fallback itself is tracked in #13995. This is only about the paragraph. I didn't run macOS.

sandboxing.mdx already describes the fallback and how to get an error instead, so build.mdx could point there.

Dominant language
Java
Stars
26.2k
Forks
4.7k
Avg merge
3d 11h
Merged PRs (30d)
125

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bazelbuild/bazel

All issues in bazelbuild/bazel

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.