Skip to content

Commit b97797d

Browse files
committed
Force use of @sap/cds-dk version 8.6.1 to avoid bug
Attempted workaround for a knownbug in some versions of the CDS compiler (i.e. `@sap/cds-dk`). Ref -> https://github.tools.sap/cap/issues/issues/17840
1 parent 15b08a7 commit b97797d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extractors/cds/tools/index-files.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ then
3636
# directory.
3737
#
3838
# We also ensure we skip node_modules, as we can end up in a recursive loop
39-
find . -type d -name node_modules -prune -false -o -type f \( -iname 'package.json' \) -exec grep -ql '@sap/cds' {} \; -execdir bash -c "grep -q \"^\$(pwd)\(/\|$\)\" \"$response_file\"" \; -execdir bash -c "echo \"Installing @sap/cds-dk into \$(pwd) to enable CDS compilation.\"" \; -execdir npm install --silent @sap/cds-dk \; -execdir npm install --silent \;
39+
find . -type d -name node_modules -prune -false -o -type f \( -iname 'package.json' \) -exec grep -ql '@sap/cds' {} \; -execdir bash -c "grep -q \"^\$(pwd)\(/\|$\)\" \"$response_file\"" \; -execdir bash -c "echo \"Installing @sap/cds-dk into \$(pwd) to enable CDS compilation.\"" \; -execdir npm install --silent @sap/cds-dk@8.6.1 \; -execdir npm install --silent \;
4040

4141
# Use the npx command to dynamically install the cds development kit (@sap/cds-dk) package if necessary,
4242
# which then provides the cds command line tool in directories which are not covered by the package.json
4343
# install command approach above
44-
cds_command="npx -y --package @sap/cds-dk cds"
44+
cds_command="npx -y --package @sap/cds-dk@8.6.1 cds"
4545
else
4646
cds_command="cds"
4747
fi
@@ -104,4 +104,4 @@ unset LGTM_INDEX_INCLUDE
104104
echo "Extracting the cds.json files"
105105

106106
# Invoke the JavaScript autobuilder to index the .cds.json files only
107-
"$CODEQL_EXTRACTOR_JAVASCRIPT_ROOT"/tools/autobuild.sh
107+
"$CODEQL_EXTRACTOR_JAVASCRIPT_ROOT"/tools/autobuild.sh

0 commit comments

Comments
 (0)