How can I make bazel use external storage when building?

 ̄綄美尐妖づ 提交于 2019-12-04 11:45:18

Use the --output_user_root flag.

Example:

bazel --output_user_root=/path/to/directory build //foo:bar

You can change the outputRoot directory by changing the $TEST_TMPDIR variable.

export TEST_TMPDIR=/path/to/directory

From the bazel docs:

The outputRoot directory is ~/.cache/bazel. (Unless $TEST_TMPDIR is set, as in a test of bazel itself, in which case this directory is used instead.)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!