mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
We've been observing some performance issues using crate_universe on CI. Therefore, we're moving to vendor the auto-generated BUILD files in our repository. This should provide a nice speed boost, while getting rid of the complexity of the "rust cache" job we've been using when we had a lot of git dependencies. This PR includes a vendor script, and I'll put up a CI job internally that runs that vendor script on Cargo.toml and Cargo.lock changes, to check that the vendored files are in sync.
13 lines
320 B
Bash
Executable File
13 lines
320 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
(
|
|
cd "$SCRIPT_DIR" || exit 1
|
|
cd ../../../
|
|
time bazel run //misc/bazel/3rdparty:vendor_py_deps
|
|
bazel mod tidy
|
|
time bazel run //misc/bazel/3rdparty:vendor_tree_sitter_extractors
|
|
bazel mod tidy
|
|
)
|