From c3c75f40e94ff43a9972fa4900a89da299708c2c Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Thu, 25 Apr 2024 19:36:36 -0700 Subject: [PATCH] gh: fix lint-cpp for ubuntu noble ubuntu noble has clang-format-16. llvm repo seems to not be there yet. --- .github/workflows/lint-cpp.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint-cpp.yml b/.github/workflows/lint-cpp.yml index ba96d180d60ba..e82e1a0770be1 100644 --- a/.github/workflows/lint-cpp.yml +++ b/.github/workflows/lint-cpp.yml @@ -32,13 +32,9 @@ jobs: - name: Run clang-format run: | docker run \ - -v $PWD:/redpanda ubuntu \ + -v $PWD:/redpanda ubuntu:noble \ bash -c "cd /redpanda && \ apt update && \ - apt install -y wget git lsb-release wget software-properties-common gnupg && \ - wget https://apt.llvm.org/llvm.sh && \ - chmod +x llvm.sh && \ - ./llvm.sh 16 && \ - apt-get install -y clang-format-16 && \ + apt install -y git clang-format-16 && \ find . -type f -regex '.*\.\(cpp\|h\|hpp\|cc\|proto\|java\)' | xargs -n1 clang-format-16 -i -style=file -fallback-style=none" git diff --exit-code