File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -36,5 +36,6 @@ pub fn run(options: Options) -> std::io::Result<()> {
3636 } ,
3737 ] ;
3838
39- generate ( languages, options. dbscheme , options. library )
39+ generate ( languages, options. dbscheme , options. library ,
40+ "run 'scripts/create-extractor-pack.sh' in ql/" )
4041}
Original file line number Diff line number Diff line change @@ -28,5 +28,10 @@ pub fn run(options: Options) -> std::io::Result<()> {
2828 } ,
2929 ] ;
3030
31- generate ( languages, options. dbscheme , options. library )
31+ generate (
32+ languages,
33+ options. dbscheme ,
34+ options. library ,
35+ "run 'make dbscheme' in ql/ruby/" ,
36+ )
3237}
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ pub fn generate(
1717 languages : Vec < language:: Language > ,
1818 dbscheme_path : PathBuf ,
1919 ql_library_path : PathBuf ,
20+ regenerate_instructions : & str ,
2021) -> std:: io:: Result < ( ) > {
2122 let dbscheme_file = File :: create ( dbscheme_path) . map_err ( |e| {
2223 tracing:: error!( "Failed to create dbscheme file: {}" , e) ;
@@ -26,8 +27,9 @@ pub fn generate(
2627 writeln ! (
2728 dbscheme_writer,
2829 "// CodeQL database schema for {}\n \
29- // Automatically generated from the tree-sitter grammar; do not edit\n ",
30- languages[ 0 ] . name
30+ // Automatically generated from the tree-sitter grammar; do not edit\n \
31+ // To regenerate, {}\n ",
32+ languages[ 0 ] . name, regenerate_instructions
3133 ) ?;
3234
3335 writeln ! ( dbscheme_writer, include_str!( "prefix.dbscheme" ) ) ?;
You can’t perform that action at this time.
0 commit comments