From f624a1b7a7593c651811de397e047f29b12e1ef0 Mon Sep 17 00:00:00 2001 From: Paolo Tranquilli Date: Wed, 11 Sep 2024 09:40:44 +0200 Subject: [PATCH] Ruby: fix extractor pack script after workspace root change --- ruby/scripts/create-extractor-pack.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ruby/scripts/create-extractor-pack.sh b/ruby/scripts/create-extractor-pack.sh index e601a4b2dd49..4cef0b8c73f3 100755 --- a/ruby/scripts/create-extractor-pack.sh +++ b/ruby/scripts/create-extractor-pack.sh @@ -8,10 +8,12 @@ else echo "Unknown OS" exit 1 fi +cd "$(dirname "$0")/.." (cd extractor && cargo build --release) -BIN_DIR=extractor/target/release +# we are in a cargo workspace rooted at the git checkout +BIN_DIR=../target/release "$BIN_DIR/codeql-extractor-ruby" generate --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