github-actions[bot] commented on PR #31304:
URL: https://github.com/apache/doris/pull/31304#issuecomment-1960677387

   #### `sh-checker report`
   
   To get the full details, please check in the 
[job]("https://github.com/apache/doris/actions/runs/8014245602";) output.
   
   <details>
   <summary>shellcheck errors</summary>
   
   ```
   
   'shellcheck ' returned error 1 finding the following syntactical issues:
   
   ----------
   
   In build.sh line 598:
       NPM='npm'
       ^-------^ SC2317 (info): Command appears to be unreachable. Check usage 
(or ignore if invoked indirectly).
   
   
   In build.sh line 599:
       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 600:
           echo "Error: npm is not found"
           ^----------------------------^ SC2317 (info): Command appears to be 
unreachable. Check usage (or ignore if invoked indirectly).
   
   
   In build.sh line 601:
           exit 1
           ^----^ SC2317 (info): Command appears to be unreachable. Check usage 
(or ignore if invoked indirectly).
   
   
   In build.sh line 603:
       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 604:
           "${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 605:
           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 606:
           echo "NPM registry: ${npm_reg}"
           ^-----------------------------^ SC2317 (info): Command appears to be 
unreachable. Check usage (or ignore if invoked indirectly).
   
   
   In build.sh line 609:
       echo "Build Frontend UI"
       ^----------------------^ SC2317 (info): Command appears to be 
unreachable. Check usage (or ignore if invoked indirectly).
   
   
   In build.sh line 610:
       ui_dist="${DORIS_HOME}/ui/dist"
       ^-----------------------------^ SC2317 (info): Command appears to be 
unreachable. Check usage (or ignore if invoked indirectly).
   
   
   In build.sh line 611:
       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 612:
           ui_dist="${CUSTOM_UI_DIST}"
           ^-------------------------^ SC2317 (info): Command appears to be 
unreachable. Check usage (or ignore if invoked indirectly).
   
   
   In build.sh line 614:
           cd "${DORIS_HOME}/ui"
           ^-------------------^ SC2317 (info): Command appears to be 
unreachable. Check usage (or ignore if invoked indirectly).
   
   
   In build.sh line 615:
           "${NPM}" cache clean --force
           ^--------------------------^ SC2317 (info): Command appears to be 
unreachable. Check usage (or ignore if invoked indirectly).
   
   
   In build.sh line 616:
           "${NPM}" install --legacy-peer-deps
           ^-- SC2317 (info): Command appears to be unreachable. Check usage 
(or ignore if invoked indirectly).
   
   
   In build.sh line 617:
           "${NPM}" run build
           ^----------------^ SC2317 (info): Command appears to be unreachable. 
Check usage (or ignore if invoked indirectly).
   
   
   In build.sh line 619:
       echo "ui dist: ${ui_dist}"
       ^------------------------^ SC2317 (info): Command appears to be 
unreachable. Check usage (or ignore if invoked indirectly).
   
   
   In build.sh line 620:
       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 621:
       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 622:
       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
   @@ -543,9 +543,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

Reply via email to