github-actions[bot] commented on PR #26888: URL: https://github.com/apache/doris/pull/26888#issuecomment-1807779489
#### `sh-checker report` To get the full details, please check in the [job]("https://github.com/apache/doris/actions/runs/6848134557") output. <details> <summary>shellcheck errors</summary> ``` 'shellcheck ' returned error 1 finding the following syntactical issues: ---------- In build.sh line 557: NPM='npm' ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 558: 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 559: echo "Error: npm is not found" ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 560: exit 1 ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 562: 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 563: "${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 564: 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 565: echo "NPM registry: ${npm_reg}" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 568: echo "Build Frontend UI" ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 569: ui_dist="${DORIS_HOME}/ui/dist" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 570: 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 571: ui_dist="${CUSTOM_UI_DIST}" ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 573: cd "${DORIS_HOME}/ui" ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 574: "${NPM}" cache clean --force ^--------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 575: "${NPM}" install --legacy-peer-deps ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 576: "${NPM}" run build ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 578: echo "ui dist: ${ui_dist}" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 579: 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 580: 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 581: 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 @@ -538,9 +538,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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org