Skip to content

Commit 7fc7593

Browse files
authored
Merge pull request #33628 from github/repo-sync
Repo sync
2 parents 22788e0 + 4dabec6 commit 7fc7593

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/code-security/codeql-cli/getting-started-with-the-codeql-cli/preparing-your-code-for-codeql-analysis.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,9 @@ The following examples are designed to give you an idea of some of the build com
326326
# `--spawn_strategy=local`: build locally, instead of using a distributed build
327327
# `--nouse_action_cache`: turn off build caching, which might prevent recompilation of source code
328328
# `--noremote_accept_cached`, `--noremote_upload_local_results`: avoid using a remote cache
329+
# `--disk_cache=`: avoid using a disk cache. Note that a disk cache is no longer considered a remote cache as of Bazel 6.
329330
codeql database create new-database --language=<language> \
330-
--command='bazel build --spawn_strategy=local --nouse_action_cache --noremote_accept_cached --noremote_upload_local_results //path/to/package:target'
331+
--command='bazel build --spawn_strategy=local --nouse_action_cache --noremote_accept_cached --noremote_upload_local_results --disk_cache= //path/to/package:target'
331332

332333
# After building, stop all running Bazel server processes.
333334
# This ensures future build commands start in a clean Bazel server process

0 commit comments

Comments
 (0)