Skip to content

Commit e2f2472

Browse files
committed
Test fix for run-codeql-unit-tests-javascript.yml
1 parent b97797d commit e2f2472

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/run-codeql-unit-tests-javascript.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ jobs:
8181
run: |
8282
if ! command -v cds &> /dev/null
8383
then
84-
npm install -g @sap/cds-dk
84+
## Workaround for https://github.tools.sap/cap/issues/issues/17840
85+
npm install -g @sap/[email protected]
8586
fi
8687
8788
# Compile .cds files to .cds.json files.
@@ -97,8 +98,8 @@ jobs:
9798
echo "I am compiling $cds_file"
9899
cds compile $cds_file \
99100
-2 json \
100-
-o "$cds_file.json" \
101-
--locations
101+
--locations \
102+
> "$cds_file.json" 2> "$cds_file.err"
102103
done
103104
popd
104105
done

extractors/cds/tools/index-files.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ while IFS= read -r cds_file; do
5454
echo "Processing CDS file $cds_file to: $cds_file.json"
5555
# Avoid using the `-o` (or `--dest`) option as it sends output to a new directory, where we want to
5656
# output to a file in the same directory as the input file but with a .json extension.
57-
if ! $cds_command compile "$cds_file" -2 json --locations --service all > "$cds_file.json" 2> "$cds_file.err"
57+
if ! $cds_command compile "$cds_file" -2 json --locations > "$cds_file.json" 2> "$cds_file.err"
5858
then
5959
stderr_truncated=`grep "^\[ERROR\]" "$cds_file.err" | tail -n 4`
6060
error_message=$'Could not compile the file '"$cds_file"$'.\nReported error(s):\n```\n'"$stderr_truncated"$'\n```'

0 commit comments

Comments
 (0)