From 40b8406d62bbb2b0876dd2068b17ba4204ecf075 Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Tue, 19 Nov 2024 10:32:21 +0100 Subject: [PATCH] Bazel: use installer shortcut in docs and workflows --- .github/workflows/cpp-swift-analysis.yml | 2 +- rust/README.md | 2 +- swift/README.md | 2 +- swift/actions/build-and-test/action.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cpp-swift-analysis.yml b/.github/workflows/cpp-swift-analysis.yml index 4b923f1b39c..ef38cb89393 100644 --- a/.github/workflows/cpp-swift-analysis.yml +++ b/.github/workflows/cpp-swift-analysis.yml @@ -48,7 +48,7 @@ jobs: - name: "Build Swift extractor using Bazel" run: | bazel clean --expunge - bazel run //swift:create-extractor-pack --nouse_action_cache --noremote_accept_cached --noremote_upload_local_results --spawn_strategy=local + bazel run //swift:installer --nouse_action_cache --noremote_accept_cached --noremote_upload_local_results --spawn_strategy=local bazel shutdown - name: Perform CodeQL Analysis diff --git a/rust/README.md b/rust/README.md index 87c7072c675..4be6372f266 100644 --- a/rust/README.md +++ b/rust/README.md @@ -13,7 +13,7 @@ If you don't have the `semmle-code` repo you may need to install Bazel manually, This approach uses a released `codeql` version and is simpler to use for QL development. From your `semmle-code` directory run: ```bash -bazel run @codeql//rust:rust-installer +bazel run @codeql//rust:installer ``` You now need to create a [per-user CodeQL configuration file](https://docs.github.com/en/code-security/codeql-cli/using-the-advanced-functionality-of-the-codeql-cli/specifying-command-options-in-a-codeql-configuration-file#using-a-codeql-configuration-file) and specify the option: ``` diff --git a/swift/README.md b/swift/README.md index a39c0ea5578..79970d90d96 100644 --- a/swift/README.md +++ b/swift/README.md @@ -13,7 +13,7 @@ brew install bazelisk then from the `ql` directory run ```bash -bazel run //swift:create-extractor-pack +bazel run //swift:installer ``` If you are running on macOS and you encounter errors mentioning `XXX is unavailable: introduced in macOS YY.ZZ`, diff --git a/swift/actions/build-and-test/action.yml b/swift/actions/build-and-test/action.yml index 2522f545c05..16a8e02a7a1 100644 --- a/swift/actions/build-and-test/action.yml +++ b/swift/actions/build-and-test/action.yml @@ -48,7 +48,7 @@ runs: - name: Build Swift extractor shell: bash run: | - bazel run //swift:create-extractor-pack + bazel run //swift:installer - name: Run codegen tests if : ${{ github.event_name == 'pull_request' }} shell: bash