Files
codeql/swift
AlexDenisov 5c6e5173ad Merge pull request #8959 from AlexDenisov/alexdenisov/pip-install-from-bazel
Swift: teach bazel to install python dependencies
2022-04-29 14:31:37 +02:00
..
2022-04-29 14:18:36 +02:00
2022-04-28 13:17:35 +02:00
2022-04-12 12:40:59 +02:00
2022-04-12 12:40:59 +02:00
2022-04-28 12:01:59 +02:00
2022-04-14 11:27:41 +02:00
2022-04-29 14:18:36 +02:00

Warning

The Swift codeql package is an experimental and unsupported work in progress.

Usage

Run

bazel run //swift:create-extractor-pack

which will install swift/extractor-pack.

Using --search-path=swift/extractor-pack will then pick up the Swift extractor. You can also use --search-path=swift, as the extractor pack is mentioned in swift/.codeqlmanifest.json.

Notice you can run bazel run :create-extractor-pack if you already are in the swift directory.

Code generation

Make sure to install the pip requirements via

python3 -m pip install -r codegen/requirements.txt

Run

bazel run //swift/codegen

to update generated files. This can be shortened to bazel run codegen if you are in the swift directory.