Bazel: Document experimental local repository cache

Change-Id: Ic2f19246f175adf8928fef441e0c6ef721109ed0
This commit is contained in:
David Ostrovsky 2017-12-24 08:44:44 +01:00
parent dd7d86cbf2
commit 3b3a5eb7b3
1 changed files with 24 additions and 0 deletions

View File

@ -398,6 +398,30 @@ build --experimental_strict_action_env
unfortunately not supported yet. This is also the reason why we can't activate this unfortunately not supported yet. This is also the reason why we can't activate this
feature by default yet (by adjusting tools/bazel.rc file). feature by default yet (by adjusting tools/bazel.rc file).
[[repository_cache]]
To accelerate fetches, local repository cache can be activated. This cache is
only used for rules_closure external repository and transitive dependendcies.
That's because rules_closure uses standard Bazel download facility. For all
other gerrit dependencies, the download_artifacts repository cache is used
already.
To activate the local repository cache, create accessible cache directory:
----
mkdir -p ~/.gerritcodereview/bazel-cache/repository
----
and add this line to your `~/.bazelrc` file:
----
build --experimental_repository_cache=/home/<user>/.gerritcodereview/bazel-cache/repository
----
[NOTE] `experimental_repository_cache` must be absolute path. Expansion of `~` is
unfortunately not supported yet. This is also the reason why we can't activate this
feature by default yet (by adjusting tools/bazel.rc file).
GERRIT GERRIT
------ ------
Part of link:index.html[Gerrit Code Review] Part of link:index.html[Gerrit Code Review]