From b7b4aaa9c7dfb9485dd5fbb801e2e386eb08393f Mon Sep 17 00:00:00 2001 From: George <58841610+Shinji-IkariG@users.noreply.github.com> Date: Wed, 7 Dec 2022 10:24:07 +0800 Subject: [PATCH] Fix apt install failed (#5010) Fix the problem that clang cannot be installed through apt,with sudo. --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 97cf436339e..3b7e777c315 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -31,7 +31,7 @@ jobs: uses: apache/skywalking-eyes/header@main - name: Ensure clang-format-10 is available run: | - command -v clang-format-10 > /dev/null || (apt-get update && apt-get install -y clang-format-10) + command -v clang-format-10 > /dev/null || (sudo apt update && sudo apt install -y clang-format-10) - name: Cpplint run: | ln -snf $PWD/.linters/cpp/hooks/pre-commit.sh $PWD/.linters/cpp/pre-commit.sh