-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
339 changed files
with
36,471 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
exports_files(["LICENSE"]) | ||
exports_files([ | ||
"LICENSE", | ||
"Cargo.lock", | ||
"Cargo.toml", | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/tree_sitter_extractors_deps/** linguist-generated=true | ||
/py_deps/** linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
load("@rules_rust//crate_universe:defs.bzl", "crates_vendor") | ||
|
||
# The targets in this file re-do the vendoring of the rust cargo dependencies. Use the update_cargo_deps.sh script to run the targets, and do all the necessary work around vendoring. | ||
crates_vendor( | ||
name = "vendor_tree_sitter_extractors", | ||
cargo_lockfile = "//:Cargo.lock", | ||
generate_build_scripts = True, | ||
manifests = [ | ||
"//:Cargo.toml", | ||
"//ruby/extractor:Cargo.toml", | ||
"//rust/extractor:Cargo.toml", | ||
"//rust/extractor/macros:Cargo.toml", | ||
"//rust/ast-generator:Cargo.toml", | ||
"//shared/tree-sitter-extractor:Cargo.toml", | ||
], | ||
mode = "remote", | ||
repository_name = "vendor", | ||
tags = ["manual"], | ||
vendor_path = "tree_sitter_extractors_deps", | ||
) | ||
|
||
crates_vendor( | ||
name = "vendor_py_deps", | ||
cargo_lockfile = "//python/extractor/tsg-python:Cargo.lock", | ||
generate_build_scripts = True, | ||
manifests = [ | ||
"//python/extractor/tsg-python:Cargo.toml", | ||
"//python/extractor/tsg-python/tsp:Cargo.toml", | ||
], | ||
mode = "remote", | ||
repository_name = "vendor", | ||
tags = ["manual"], | ||
vendor_path = "py_deps", | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
88 changes: 88 additions & 0 deletions
88
misc/bazel/3rdparty/py_deps/BUILD.aho-corasick-0.7.18.bazel
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.