-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Ruby: Merge extractor crates #12510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby: Merge extractor crates #12510
Changes from all commits
1a71c3f
983b842
6f23111
15bd825
f53c313
a7e2763
194edd7
e070bd5
5c59692
0e5dcdd
cd9927c
f327223
4de31e8
f19e48d
7ee7a0d
999b12f
eefc486
6dcc884
fd43ba0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/target | ||
extractor/target | ||
extractor-pack | ||
.vscode/launch.json | ||
.cache | ||
|
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pub mod dbscheme; | ||
pub mod language; | ||
pub mod ql; | ||
pub mod ql_gen; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pub mod diagnostics; | ||
pub mod extractor; | ||
pub mod file_paths; | ||
pub mod generator; | ||
pub mod node_types; | ||
pub mod trap; |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,14 +13,14 @@ else | |
exit 1 | ||
fi | ||
|
||
"$CARGO" build --release | ||
(cd extractor && "$CARGO" build --release) | ||
extractor/target/release/generator --dbscheme ql/lib/ruby.dbscheme --library ql/lib/codeql/ruby/ast/internal/TreeSitter.qll | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the reason for replacing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I changed this because it stopped working after my changes. I was seeing "No such file or directory" errors in CI. My guess as to why is because cross runs commands in a Docker container, and so when we moved the extractor to be inside There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, makes sense. I don't really mind, but I was curious ;-) |
||
|
||
"$CARGO" run --release -p ruby-generator -- --dbscheme ql/lib/ruby.dbscheme --library ql/lib/codeql/ruby/ast/internal/TreeSitter.qll | ||
codeql query format -i ql/lib/codeql/ruby/ast/internal/TreeSitter.qll | ||
|
||
rm -rf extractor-pack | ||
mkdir -p extractor-pack | ||
cp -r codeql-extractor.yml downgrades tools ql/lib/ruby.dbscheme ql/lib/ruby.dbscheme.stats extractor-pack/ | ||
mkdir -p extractor-pack/tools/${platform} | ||
cp target/release/ruby-extractor extractor-pack/tools/${platform}/extractor | ||
cp target/release/ruby-autobuilder extractor-pack/tools/${platform}/autobuilder | ||
cp extractor/target/release/extractor extractor-pack/tools/${platform}/extractor | ||
cp extractor/target/release/autobuilder extractor-pack/tools/${platform}/autobuilder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for replacing
cargo run
with an explicit path?