fix: upgrade rules_kotlin to 2.2.2 for Windows compatibility

Upgrade from 2.2.0-codeql.1 to 2.2.2-codeql.1 which includes:
- Fix Windows bzlmod builder classpath issue
- Move to official bazel worker api

This eliminates the need for --legacy_external_runfiles on Windows.

Also fix codegen templates to be included in runfiles.
This commit is contained in:
Paolo Tranquilli
2026-02-06 12:18:07 +01:00
parent ca90de2bed
commit b38c3268fb
9 changed files with 113 additions and 3 deletions

View File

@@ -5,6 +5,9 @@ py_binary(
srcs = ["codegen.py"],
data = [
"//misc/codegen/templates:cpp",
"//misc/codegen/templates:dbscheme",
"//misc/codegen/templates:ql",
"//misc/codegen/templates:rust",
"//misc/codegen/templates:trap",
],
visibility = ["//visibility:public"],

View File

@@ -1,5 +1,10 @@
package(default_visibility = ["//misc/codegen:__subpackages__"])
filegroup(
name = "dbscheme",
srcs = ["dbscheme.mustache"],
)
filegroup(
name = "trap",
srcs = glob(["trap_*.mustache"]),
@@ -9,3 +14,13 @@ filegroup(
name = "cpp",
srcs = glob(["cpp_*.mustache"]),
)
filegroup(
name = "ql",
srcs = glob(["ql_*.mustache"]),
)
filegroup(
name = "rust",
srcs = glob(["rust_*.mustache"]),
)