From cdbb778dc68fee43474f6bbb0db23afb0d74c098 Mon Sep 17 00:00:00 2001 From: Hiroyuki Komatsu Date: Sun, 15 Oct 2023 17:31:10 +0000 Subject: [PATCH] Add a note for `bazel clean`. #codehealth PiperOrigin-RevId: 573636115 --- docs/build_mozc_in_docker.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/build_mozc_in_docker.md b/docs/build_mozc_in_docker.md index b12e612cea..bc9b229aff 100644 --- a/docs/build_mozc_in_docker.md +++ b/docs/build_mozc_in_docker.md @@ -172,6 +172,21 @@ This command reverts the above change. git update-index --no-assume-unchanged src/config.bzl ``` +### Clean build cache + +You may have some build errors when you update build environment or configurations. +In that case, cleaing the build cache possibly addresses the problem. + +``` +bazel clean +``` + +To clean the cache deeply, add the `--expunge` option. + +``` +bazel clean --expunge +``` + ## Build Mozc library for Android: Client code for Android apk is deprecated.