Skip to content

Commit

Permalink
Bazel: unified --repository_cache for bazel sync
Browse files Browse the repository at this point in the history
If we specify `--repository_cache` for the `build` command rather than
a `common` option, commands like `bazel sync` will not respect the
settings there.

Ref:
https://docs.bazel.build/versions/main/guide.html#option-defaults
  • Loading branch information
storypku authored and AndrewXWei committed Jul 22, 2021
1 parent f6ebfc2 commit 7dea797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def setup_common_dirs(environ_cp):

write_to_bazelrc('startup --output_user_root="{}/bazel"'.format(cache_dir))
write_to_bazelrc('common --distdir="{}"'.format(dist_dir))
write_to_bazelrc('build --repository_cache="{}/repos"'.format(cache_dir))
write_to_bazelrc('common --repository_cache="{}/repos"'.format(cache_dir))
write_to_bazelrc('build --disk_cache="{}/build"'.format(cache_dir))
write_to_bazelrc('')

Expand Down

0 comments on commit 7dea797

Please sign in to comment.