mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
* The ungram file is now taken from the rust-analyzer dependencies pulled in by bazel * the grammar parsing code is not published, so it must be taken directly from rust-analyzer code. That part should be less prone to be updated than the ungram file, so it does not necessarily need to be in sync with the rust-analyzer version is used elsewhere. * both need some patches. The former is patched during build, the latter during loading in `MODULE.bazel`.
14 lines
398 B
Bash
Executable File
14 lines
398 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
WORKSPACE_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )/../../.." &> /dev/null && pwd )
|
|
|
|
cd "$WORKSPACE_DIR"
|
|
time bazel run //misc/bazel/3rdparty:vendor_tree_sitter_extractors
|
|
|
|
# we need access to this file in the rust extractor
|
|
echo 'exports_files(["rust.ungram"])' >> misc/bazel/3rdparty/tree_sitter_extractors_deps/BUILD.ra_ap_syntax-?.*.bazel
|
|
|
|
bazel mod tidy
|