github-actions[bot] commented on PR #23362: URL: https://github.com/apache/doris/pull/23362#issuecomment-1697607467
#### `sh-checker report` To get the full details, please check in the [job]("https://github.com/apache/doris/actions/runs/6013961428") output. <details> <summary>shellcheck errors</summary> ``` 'shellcheck ' returned error 1 finding the following syntactical issues: ---------- In build.sh line 274: local submodule_path=$1 ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 275: local submodule_name=$2 ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 276: local archive_url=$3 ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 278: set +e ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 279: cd "${DORIS_HOME}" ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 280: echo "Update ${submodule_name} submodule ..." ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 281: git submodule update --init --recursive "${submodule_path}" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 282: exit_code=$? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 283: set -e ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 284: if [[ "${exit_code}" -ne 0 ]]; 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 285: echo "Update ${submodule_name} submodule failed, start to download and extract ${submodule_name} package ..." ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 286: mkdir -p "${DORIS_HOME}/${submodule_path}" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 287: curl -L "${archive_url}" | tar -xz -C "${DORIS_HOME}/${submodule_path}" --strip-components=1 ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 536: NPM='npm' ^-------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 537: 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 538: echo "Error: npm is not found" ^----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 539: exit 1 ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 541: 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 542: "${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 543: 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 544: echo "NPM registry: ${npm_reg}" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 547: echo "Build Frontend UI" ^----------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 548: ui_dist="${DORIS_HOME}/ui/dist" ^-----------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 549: 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 550: ui_dist="${CUSTOM_UI_DIST}" ^-------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 552: cd "${DORIS_HOME}/ui" ^-------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 553: "${NPM}" cache clean --force ^--------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 554: "${NPM}" install --legacy-peer-deps ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 555: "${NPM}" run build ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 557: echo "ui dist: ${ui_dist}" ^------------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 558: 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 559: 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 560: 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 ' found no issues. ``` </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