File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 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.
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
Original file line number Diff line number Diff 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 " $' .\n Reported error(s):\n ```\n ' " $stderr_truncated " $' \n ```'
You can’t perform that action at this time.
0 commit comments