Skip to content

Commit e8677b4

Browse files
author
Paolo Tranquilli
committed
Bazel: rename shortcut to install
1 parent 40b8406 commit e8677b4

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/cpp-swift-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: "Build Swift extractor using Bazel"
4949
run: |
5050
bazel clean --expunge
51-
bazel run //swift:installer --nouse_action_cache --noremote_accept_cached --noremote_upload_local_results --spawn_strategy=local
51+
bazel run //swift:install --nouse_action_cache --noremote_accept_cached --noremote_upload_local_results --spawn_strategy=local
5252
bazel shutdown
5353
5454
- name: Perform CodeQL Analysis

misc/bazel/pkg.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def codeql_pack(
451451
This rule also provides a convenient installer target named `<name>-installer`, with a path governed by `install_dest`.
452452
This installer is used for installing this pack into the source-tree, relative to the directory where the rule is used.
453453
See `codeql_pack_install` for more details. The first `codeql_pack` defined in a bazel package also aliases this
454-
installer target with the `installer` name as a shortcut.
454+
installer target with the `install` name as a shortcut.
455455
456456
This function does not accept `visibility`, as packs are always public to make it easy to define pack groups.
457457
"""
@@ -475,8 +475,8 @@ def codeql_pack(
475475
visibility = ["//visibility:public"],
476476
)
477477
_codeql_pack_install(internal("installer"), [name], install_dest = install_dest, apply_pack_prefix = False)
478-
if not native.existing_rule("installer"):
479-
native.alias(name = "installer", actual = internal("installer"))
478+
if not native.existing_rule("install"):
479+
native.alias(name = "install", actual = internal("installer"))
480480

481481
strip_prefix = _strip_prefix
482482

rust/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If you don't have the `semmle-code` repo you may need to install Bazel manually,
1313

1414
This approach uses a released `codeql` version and is simpler to use for QL development. From your `semmle-code` directory run:
1515
```bash
16-
bazel run @codeql//rust:installer
16+
bazel run @codeql//rust:install
1717
```
1818
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:
1919
```

swift/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ brew install bazelisk
1313
then from the `ql` directory run
1414

1515
```bash
16-
bazel run //swift:installer
16+
bazel run //swift:install
1717
```
1818

1919
If you are running on macOS and you encounter errors mentioning `XXX is unavailable: introduced in macOS YY.ZZ`,

swift/actions/build-and-test/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ runs:
4848
- name: Build Swift extractor
4949
shell: bash
5050
run: |
51-
bazel run //swift:installer
51+
bazel run //swift:install
5252
- name: Run codegen tests
5353
if : ${{ github.event_name == 'pull_request' }}
5454
shell: bash

0 commit comments

Comments
 (0)