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 81
81
run : |
82
82
if ! command -v cds &> /dev/null
83
83
then
84
+ ## Workaround for https://github.tools.sap/cap/issues/issues/17840
84
85
npm install -g @sap/[email protected]
85
86
fi
86
87
97
98
echo "I am compiling $cds_file"
98
99
cds compile $cds_file \
99
100
-2 json \
100
- -o "$cds_file.json" \
101
- --locations
101
+ --locations \
102
+ > "$cds_file.json" 2> "$cds_file.err"
102
103
done
103
104
popd
104
105
done
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ echo "Processing CDS files to JSON"
52
52
# the same name
53
53
while IFS= read -r cds_file; do
54
54
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
56
56
stderr_truncated=` grep " ^\[ERROR\]" " $cds_file .err" | tail -n 4`
57
57
error_message=$' Could not compile the file ' " $cds_file " $' .\n Reported error(s):\n ```\n ' " $stderr_truncated " $' \n ```'
58
58
echo " $error_message "
You can’t perform that action at this time.
0 commit comments