File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# Usage overview
33Building the extractor can be done via
44```
5- bazel build //java/kotlin-extractor:codeql-extractor-kotlin-<variant>-<version>
5+ bazel build @codeql //java/kotlin-extractor:codeql-extractor-kotlin-<variant>-<version>
66```
77where `<variant>` is either `standalone` or `embeddable`, and `<version>` is one of the supported versions.
8-
98```
10- bazel build //java/kotlin-extractor
9+ bazel build @codeql //java/kotlin-extractor
1110```
1211will build a default variant:
1312* standalone, unless `CODEQL_KOTLIN_SINGLE_VERSION_EMBEDDABLE` is set to true, in which case it will go for embeddable
@@ -19,6 +18,8 @@ If `kotlinc` is updated, bazel won't be aware of it and will therefore keep the
1918* `bazel clean`
2019* `bazel fetch --force @codeql_kotlin_defaults\\ :all`
2120* `CODEQL_KOTLIN_SINGLE_VERSION= bazel build //java/kotlin-extractor`
21+
22+ If building from the `codeql` repository, `@codeql` can be skipped.
2223"""
2324
2425# This file is used in the `@codeql_kotlin_embeddable` external repo, which means we need to
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ def _walk(dir):
4949 next_dirs .extend ([c for c in children if c .is_dir ])
5050 res .extend ([c for c in children if not c .is_dir ])
5151 if not next_dirs :
52- break
53- return res
52+ return res
53+ fail ( "%s directory too deep" % dir )
5454
5555def _embeddable_source_impl (repository_ctx ):
5656 src_dir = repository_ctx .path (Label ("//java/kotlin-extractor:src" ))
You can’t perform that action at this time.
0 commit comments