Skip to content

Commit 638fd91

Browse files
committed
Update generator to write the ast.qll file directly into ql/src
1 parent 28a99cf commit 638fd91

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
if: ${{ matrix.os == 'ubuntu-latest' }}
5151
with:
5252
name: ruby_ast.qll
53-
path: ruby_ast.qll
53+
path: ql/src/codeql_ruby/ast.qll
5454
- uses: actions/upload-artifact@v2
5555
with:
5656
name: extractor-${{ matrix.os }}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ cargo build --release
1212

1313
## Generating the database schema and QL library
1414

15-
The generated `ruby.dbscheme` and `ruby_ast.qll` files are included in the repository, but they can be re-generated as follows:
15+
The generated `ql/src/ruby.dbscheme` and `ql/src/codeql_ruby/ast.qll` files are included in the repository, but they can be re-generated as follows:
1616

1717
```bash
1818
# Run the generator
1919
cargo run --release -p ruby-generator
2020
# Then auto-format the QL library
21-
codeql query format -i ruby_ast.qll
21+
codeql query format -i ql/src/codeql_ruby/ast.qll
2222
```

generator/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ fn main() {
287287
name: "Ruby".to_string(),
288288
node_types: tree_sitter_ruby::NODE_TYPES,
289289
dbscheme_path: PathBuf::from("ql/src/ruby.dbscheme"),
290-
ql_library_path: PathBuf::from("ruby_ast.qll"),
290+
ql_library_path: PathBuf::from("ql/src/codeql_ruby/ast.qll"),
291291
};
292292
match node_types::read_node_types_str(&ruby.node_types) {
293293
Err(e) => {
File renamed without changes.

0 commit comments

Comments
 (0)