Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e963b84

Browse files
committed
Kotlin: fix error in building extractor from internal repo
1 parent fd77f1a commit e963b84

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

java/kotlin-extractor/BUILD.bazel

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ _resources = [
113113
) + get_compatilibity_sources(v, "src/main/kotlin/utils/versions"),
114114
kotlinc_opts = ":kotlinc-options-%s" % v,
115115
module_name = "codeql-kotlin-extractor",
116-
resource_strip_prefix = "../%s/%s" % (
117-
repo_name(),
118-
v,
119-
) if _for_embeddable else "%s/%s" % (
120-
package_name(),
121-
v,
116+
# resource_strip_prefix is very nit-picky: the following makes it work from
117+
# `codeql`, `@codeql_kotlin_embeddable` and `semmle-code`
118+
resource_strip_prefix = (
119+
("../%s/" % repo_name() if repo_name() else "") +
120+
("%s/" % package_name() if package_name() else "") +
121+
v
122122
),
123123
resources = [
124124
":resources-%s" % v,

0 commit comments

Comments
 (0)