Skip to content

Commit

Permalink
Add version of the command that completes
Browse files Browse the repository at this point in the history
This is related to bazelbuild/bazel#18686
  • Loading branch information
DavidANeil committed Jan 16, 2024
1 parent 8d932ed commit 8491a03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# !!!! Note that the readme's command disables this file, only modify it if you have it re-enabled!!!!

build --disk_cache=~/.cache/bazel_repro_cache

build --experimental_remote_merkle_tree_cache
# build --experimental_remote_merkle_tree_cache_size=0 # This doesn't seem to fix it
build --experimental_remote_merkle_tree_cache_size=0 # 0=Unlimited. Without this: the build seemingly never completes. With it: it takes over a minute.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
```
bazel --version
./write.sh a
bazel --ignore_all_rc_files build --experimental_remote_merkle_tree_cache --disk_cache=~/.cache/bazel_repro_cache //:big
bazel --ignore_all_rc_files build --experimental_remote_merkle_tree_cache --experimental_remote_merkle_tree_cache_size=0 --disk_cache=~/.cache/bazel_repro_cache //:big
```

The command takes approximately 2 minutes to complete on `bazelbuild/7.0.0`, and only a couple of seconds on `bazelbuild/6.4.0`

Re-run `./write.sh` with a new string argument to bust the cache, if desired.

0 comments on commit 8491a03

Please sign in to comment.