Skip to content

Commit 99f70a6

Browse files
committed
Kotlin: address review comments
1 parent d1a2c0f commit 99f70a6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

java/kotlin-extractor/BUILD.bazel

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
# Usage overview
33
Building 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
```
77
where `<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
```
1211
will 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

java/kotlin-extractor/deps.bzl

+2-2
Original file line numberDiff line numberDiff 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

5555
def _embeddable_source_impl(repository_ctx):
5656
src_dir = repository_ctx.path(Label("//java/kotlin-extractor:src"))

0 commit comments

Comments
 (0)