bazelbuild/bazel

Location user's build state with `sudo` unclear from documentation

Open

#18,601 建立於 2023年6月6日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Java (4,465 fork)batch import
P3help wantedteam-Documentationteam-Local-Exectype: documentation (cleanup)

倉庫指標

Star
 (25,384 star)
PR 合併指標
 (平均合併 22天 20小時) (30 天內合併 77 個 PR)

描述

Page link:

https://bazel.build/remote/output-directories

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

The docs state:

The Bazel user's build state is located beneath outputRoot/_bazel_$USER. This is called the outputUserRoot directory.

However, this does not seem to be correct.

echo $USER
bart
sudo echo $USER
bart
bazel info output_path
/home/bart/.cache/bazel/_bazel_bart/789d3790deff466599799bacb2b9d927/execroot/Maplibre/bazel-out
sudo bazel info output_path
/root/.cache/bazel/_bazel_root/789d3790deff466599799bacb2b9d927/execroot/Maplibre/bazel-out

Notice the output path differs and is _bazel_bart instead of _bazel_root when using sudo.

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

https://bazel.build/remote/output-directories#layout

Any other information you'd like to share?

No response

貢獻者指南