github-actions[bot] commented on PR #37403: URL: https://github.com/apache/doris/pull/37403#issuecomment-2212452194
#### `sh-checker report` To get the full details, please check in the [job]("https://github.com/apache/doris/actions/runs/9827706324") output. <details> <summary>shellcheck errors</summary> ``` 'shellcheck ' returned error 1 finding the following syntactical issues: ---------- In build.sh line 289: local submodule_path=$1 ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 290: local submodule_name=$2 ^---------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 291: local archive_url=$3 ^------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 293: set +e ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 294: cd "${DORIS_HOME}" ^----------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 295: echo "Update ${submodule_name} submodule ..." ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 296: 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 297: exit_code=$? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 298: if [[ "${exit_code}" -eq 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 299: cd "${submodule_path}" ^--------------------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 300: submodule_commit_id=$(git rev-parse HEAD) ^-- 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 301: cd - ^--^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 302: expect_submodule_commit_id=$(git ls-tree HEAD "${submodule_path}" | awk '{print $3}') ^-- 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 303: echo "Current commit ID of ${submodule_name} submodule: ${submodule_commit_id}, expected is ${expect_submodule_commit_id}" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 305: set -e ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 306: 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 307: set +e ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 309: submodule_commit=$(git ls-tree HEAD "${submodule_path}" | awk '{print $3}') ^-- 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 310: exit_code=$? ^----------^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 311: if [[ "${exit_code}" = "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 312: commit_specific_url=$(echo "${archive_url}" | sed "s/refs\/heads/${submodule_commit}/") ^-- 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 314: commit_specific_url="${archive_url}" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 316: set -e ^----^ SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 317: echo "Update ${submodule_name} submodule failed, start to download and extract ${commit_specific_url}" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 319: mkdir -p "${DORIS_HOME}/${submodule_path}" ^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly). In build.sh line 320: curl -L "${commit_specific_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). 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