小编mo6*_*114的帖子

k8 在 bazel info local_cpu_resources 的输出中意味着什么

当我bazel info --local_cpu_resources HOST_CPUS继续macos奔跑时ubuntu

在 Mac 系统中

`bazel-bin: .../9dcdc19e81f948a3daf2cc314e0d4bf1/execroot/demo/bazel-out/darwin-fastbuild/bin`

`bazel-genfiles: .../9dcdc19e81f948a3daf2cc314e0d4bf1/execroot/demo/bazel-out/darwin-fastbuild/bin`

`bazel-testlogs: .../9dcdc19e81f948a3daf2cc314e0d4bf1/execroot/demo/bazel-out/darwin-fastbuild/testlogs`
Run Code Online (Sandbox Code Playgroud)

在Ubuntu中

`bazel-bin: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/bin`

`bazel-genfiles: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/bin`

`bazel-testlogs: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/testlogs`
Run Code Online (Sandbox Code Playgroud)

问题

  • Darwin可能意味着OSmacos.
  • 是什么k8意思ubuntu
  • 在其他平台上,比如windows,会输出什么?为什么?

参考信息

https://docs.bazel.build/versions/master/be/make-variables.html#predefined_variables

https://docs.bazel.build/versions/master/guide.html#distinct_host_configuration-true-default

Ubuntu 上的完整输出

root@608a654a26de:/home/servlet/demo# bazel info --local_cpu_resources HOST_CPUS
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
bazel-bin: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/bin
bazel-genfiles: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/bin
bazel-testlogs: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/testlogs
character-encoding: file.encoding = ISO-8859-1, defaultCharset = ISO-8859-1
command_log: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/command.log
committed-heap-size: 40MB
execution_root: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo …
Run Code Online (Sandbox Code Playgroud)

ubuntu bazel

15
推荐指数
1
解决办法
3828
查看次数

标签 统计

bazel ×1

ubuntu ×1