github-actions[bot] commented on PR #30234:
URL: https://github.com/apache/doris/pull/30234#issuecomment-1903665055
#### `sh-checker report`
To get the full details, please check in the
[job]("https://github.com/apache/doris/actions/runs/7609572417") output.
<details>
<summary>shellcheck errors</summary>
```
'shellcheck ' returned error 1 finding the following syntactical issues:
----------
In build.sh line 603:
NPM='npm'
^-------^ SC2317 (info): Command appears to be unreachable. Check usage
(or ignore if invoked indirectly).
In build.sh line 604:
if ! ${NPM} --version; then
^-- SC2317 (info): Command appears to be unreachable. Check usage (or
ignore if invoked indirectly).
^--------------^ SC2317 (info): Command appears to be unreachable.
Check usage (or ignore if invoked indirectly).
In build.sh line 605:
echo "Error: npm is not found"
^----------------------------^ SC2317 (info): Command appears to be
unreachable. Check usage (or ignore if invoked indirectly).
In build.sh line 606:
exit 1
^----^ SC2317 (info): Command appears to be unreachable. Check usage
(or ignore if invoked indirectly).
In build.sh line 608:
if [[ -n "${CUSTOM_NPM_REGISTRY}" ]]; then
^-- SC2317 (info): Command appears to be unreachable. Check usage (or
ignore if invoked indirectly).
^-- SC2317 (info): Command appears to be unreachable. Check usage (or
ignore if invoked indirectly).
In build.sh line 609:
"${NPM}" config set registry "${CUSTOM_NPM_REGISTRY}"
^-- SC2317 (info): Command appears to be unreachable. Check usage
(or ignore if invoked indirectly).
In build.sh line 610:
npm_reg="$("${NPM}" get registry)"
^-- SC2317 (info): Command appears to be unreachable. Check usage
(or ignore if invoked indirectly).
^-------------------^ SC2317 (info): Command appears to
be unreachable. Check usage (or ignore if invoked indirectly).
In build.sh line 611:
echo "NPM registry: ${npm_reg}"
^-----------------------------^ SC2317 (info): Command appears to be
unreachable. Check usage (or ignore if invoked indirectly).
In build.sh line 614:
echo "Build Frontend UI"
^----------------------^ SC2317 (info): Command appears to be
unreachable. Check usage (or ignore if invoked indirectly).
In build.sh line 615:
ui_dist="${DORIS_HOME}/ui/dist"
^-----------------------------^ SC2317 (info): Command appears to be
unreachable. Check usage (or ignore if invoked indirectly).
In build.sh line 616:
if [[ -n "${CUSTOM_UI_DIST}" ]]; then
^-- SC2317 (info): Command appears to be unreachable. Check usage (or
ignore if invoked indirectly).
^--------------------------^ SC2317 (info): Command appears to be
unreachable. Check usage (or ignore if invoked indirectly).
In build.sh line 617:
ui_dist="${CUSTOM_UI_DIST}"
^-------------------------^ SC2317 (info): Command appears to be
unreachable. Check usage (or ignore if invoked indirectly).
In build.sh line 619:
cd "${DORIS_HOME}/ui"
^-------------------^ SC2317 (info): Command appears to be
unreachable. Check usage (or ignore if invoked indirectly).
In build.sh line 620:
"${NPM}" cache clean --force
^--------------------------^ SC2317 (info): Command appears to be
unreachable. Check usage (or ignore if invoked indirectly).
In build.sh line 621:
"${NPM}" install --legacy-peer-deps
^-- SC2317 (info): Command appears to be unreachable. Check usage
(or ignore if invoked indirectly).
In build.sh line 622:
"${NPM}" run build
^----------------^ SC2317 (info): Command appears to be unreachable.
Check usage (or ignore if invoked indirectly).
In build.sh line 624:
echo "ui dist: ${ui_dist}"
^------------------------^ SC2317 (info): Command appears to be
unreachable. Check usage (or ignore if invoked indirectly).
In build.sh line 625:
rm -rf "${DORIS_HOME}/fe/fe-core/src/main/resources/static"
^-- SC2317 (info): Command appears to be unreachable. Check usage (or
ignore if invoked indirectly).
In build.sh line 626:
mkdir -p "${DORIS_HOME}/fe/fe-core/src/main/resources/static"
^-- SC2317 (info): Command appears to be unreachable. Check usage (or
ignore if invoked indirectly).
In build.sh line 627:
cp -r "${ui_dist}"/*
"${DORIS_HOME}/fe/fe-core/src/main/resources/static"/
^-- SC2317 (info): Command appears to be unreachable. Check usage (or
ignore if invoked indirectly).
For more information:
https://www.shellcheck.net/wiki/SC2317 -- Command appears to be
unreachable...
----------
You can address the above issues in one of three ways:
1. Manually correct the issue in the offending shell script;
2. Disable specific issues by adding the comment:
# shellcheck disable=NNNN
above the line that contains the issue, where NNNN is the error code;
3. Add '-e NNNN' to the SHELLCHECK_OPTS setting in your .yml action file.
```
</details>
<details>
<summary>shfmt errors</summary>
```
'shfmt ' returned error 1 finding the following formatting issues:
----------
--- build.sh.orig
+++ build.sh
@@ -548,9 +548,9 @@
-DDORIS_JAVA_HOME="${JAVA_HOME}" \
"${DORIS_HOME}/be"
- "${BUILD_SYSTEM}" -j "${PARALLEL}"
- # 不要 install,这样确保 workspace 的 debug 跟 release 可以使用软连接到不同的二进制
- # "${BUILD_SYSTEM}" install
+ "${BUILD_SYSTEM}" -j "${PARALLEL}"
+ # 不要 install,这样确保 workspace 的 debug 跟 release 可以使用软连接到不同的二进制
+ # "${BUILD_SYSTEM}" install
cd "${DORIS_HOME}"
fi
----------
You can reformat the above files to meet shfmt's requirements by typing:
shfmt -w filename
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]