File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 8181 run : |
8282 if ! command -v cds &> /dev/null
8383 then
84+ ## Workaround for https://github.tools.sap/cap/issues/issues/17840
8485 npm install -g @sap/cds-dk@8.6.1
8586 fi
8687
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 @@ -52,7 +52,7 @@ echo "Processing CDS files to JSON"
5252# the same name
5353while IFS= read -r cds_file; do
5454 echo " Processing CDS file $cds_file to:"
55- if ! $cds_command compile " $cds_file " -2 json -o " $cds_file .json" --locations 2> " $cds_file .err" ; then
55+ if ! $cds_command compile " $cds_file " -2 json --locations > " $cds_file .json" 2> " $cds_file .err" ; then
5656 stderr_truncated=` grep " ^\[ERROR\]" " $cds_file .err" | tail -n 4`
5757 error_message=$' Could not compile the file ' " $cds_file " $' .\n Reported error(s):\n ```\n ' " $stderr_truncated " $' \n ```'
5858 echo " $error_message "
You can’t perform that action at this time.
0 commit comments