File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 2
2
# Usage overview
3
3
Building the extractor can be done via
4
4
```
5
- bazel build //java/kotlin-extractor:codeql-extractor-kotlin-<variant>-<version>
5
+ bazel build @codeql //java/kotlin-extractor:codeql-extractor-kotlin-<variant>-<version>
6
6
```
7
7
where `<variant>` is either `standalone` or `embeddable`, and `<version>` is one of the supported versions.
8
-
9
8
```
10
- bazel build //java/kotlin-extractor
9
+ bazel build @codeql //java/kotlin-extractor
11
10
```
12
11
will build a default variant:
13
12
* 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
19
18
* `bazel clean`
20
19
* `bazel fetch --force @codeql_kotlin_defaults\\ :all`
21
20
* `CODEQL_KOTLIN_SINGLE_VERSION= bazel build //java/kotlin-extractor`
21
+
22
+ If building from the `codeql` repository, `@codeql` can be skipped.
22
23
"""
23
24
24
25
# 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):
49
49
next_dirs .extend ([c for c in children if c .is_dir ])
50
50
res .extend ([c for c in children if not c .is_dir ])
51
51
if not next_dirs :
52
- break
53
- return res
52
+ return res
53
+ fail ( "%s directory too deep" % dir )
54
54
55
55
def _embeddable_source_impl (repository_ctx ):
56
56
src_dir = repository_ctx .path (Label ("//java/kotlin-extractor:src" ))
You can’t perform that action at this time.
0 commit comments