From afd4b3321b1ebe4b52edda9a76c022524a8c0212 Mon Sep 17 00:00:00 2001 From: Paul Cody Johnston Date: Mon, 9 Jan 2023 15:45:12 -0700 Subject: [PATCH] Recommend alternative to bazel clean Almost certainly users don't need to do a full bazel clean for this scenario. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0d510f505ec..010d1115d3b 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,13 @@ bazel build -c opt //src/workerd/server:workerd The compiled binary will be located at `bazel-bin/src/workerd/server/workerd`. -If you run a Bazel build before you've installed some dependencies (like clang or libc++), and then you install the dependencies, you must clean Bazel's cache, otherwise you might get strange errors: +If you run a Bazel build before you've installed some dependencies (like clang or libc++), and then you install the dependencies, you must resync locally cached toolchains, or clean Bazel's cache, otherwise you might get strange errors: + +``` +bazel sync --configure +``` + +If that fails, you can try: ``` bazel clean --expunge