mirror of
https://github.com/github/codeql.git
synced 2026-07-31 07:22:56 +02:00
`languages::swift::adapter` embeds the swift-syntax node-types schema
with `include_str!("../../../swift_node_types.yml")`, but the file was
never listed in the extractor's Bazel `compile_data`. The `cargo` build
finds it on disk, so this went unnoticed, but the sandboxed Bazel build
cannot see it and fails to compile the extractor. List it alongside
`ast_types.yml`.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
26 lines
668 B
Python
26 lines
668 B
Python
load("//misc/bazel:rust.bzl", "codeql_rust_binary")
|
|
load("//misc/bazel/3rdparty/tree_sitter_extractors_deps:defs.bzl", "aliases", "all_crate_deps")
|
|
|
|
exports_files(["Cargo.toml"])
|
|
|
|
codeql_rust_binary(
|
|
name = "extractor",
|
|
srcs = glob(["src/**/*.rs"]),
|
|
aliases = aliases(),
|
|
compile_data = [
|
|
"ast_types.yml",
|
|
"swift_node_types.yml",
|
|
],
|
|
proc_macro_deps = all_crate_deps(
|
|
proc_macro = True,
|
|
),
|
|
visibility = ["//visibility:public"],
|
|
deps = all_crate_deps(
|
|
normal = True,
|
|
) + [
|
|
"//shared/tree-sitter-extractor",
|
|
"//shared/yeast",
|
|
"//unified/extractor/tree-sitter-swift",
|
|
],
|
|
)
|