File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -225,10 +225,8 @@ commands that you can specify for compiled languages.
225
225
226
226
# Navigate to the Bazel workspace.
227
227
228
- # Stop all running Bazel server processes.
229
- bazel shutdown
230
-
231
- # Remove cached objects before building.
228
+ # Before building, remove cached objects
229
+ # and stop all running Bazel server processes.
232
230
bazel clean --expunge
233
231
234
232
# Build using the following Bazel flags, to help CodeQL detect the build:
@@ -238,6 +236,11 @@ commands that you can specify for compiled languages.
238
236
codeql database create new-database --language=<language> \
239
237
--command='bazel build --spawn_strategy=local --nouse_action_cache --noremote_accept_cached --noremote_upload_local_results //path/to/package:target'
240
238
239
+ # After building, stop all running Bazel server processes.
240
+ # This ensures future build commands start in a clean Bazel server process
241
+ # without CodeQL attached.
242
+ bazel shutdown
243
+
241
244
- Project built using a custom build script::
242
245
243
246
codeql database create new-database --language=<language> --command='./scripts/build.sh'
You can’t perform that action at this time.
0 commit comments