Skip to content

Commit e4766b6

Browse files
author
Paolo Tranquilli
committed
Rust: make QL test crates workspaces
1 parent 8bf3c42 commit e4766b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/tools/qltest.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ QLTEST_LOG="$CODEQL_EXTRACTOR_RUST_LOG_DIR"/qltest.log
88

99
EXTRACTOR="$CODEQL_EXTRACTOR_RUST_ROOT/tools/$CODEQL_PLATFORM/extractor"
1010
for src in *.rs; do
11-
echo -e "[package]\nname = \"test\"\nversion=\"0.0.1\"\n[lib]\npath=\"$src\"\n" > Cargo.toml
11+
echo -e "[workspace]\n\n[package]\nname = \"test\"\nversion=\"0.0.1\"\n[lib]\npath=\"$src\"\n" > Cargo.toml
1212
env=()
1313
opts=("$src")
1414
opts+=($(sed -n '1 s=//codeql-extractor-options:==p' $src))

0 commit comments

Comments
 (0)