From aa7fcb9829b418963d9e60e76c313c2ae49da29f Mon Sep 17 00:00:00 2001 From: Willem Kaufmann Date: Wed, 1 May 2024 14:27:21 -0400 Subject: [PATCH] gh: backport of fix lint-cpp for ubuntu noble Manual backport of PR: https://github.com/redpanda-data/redpanda/pull/18087. Looks like `lint-cpp.yml` did not exist yet in `v23.2.x`. I have made the same changes to the appropriate command in `lint.yml`. --- .github/workflows/lint.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cdebf2c01e3cb..9025201c9ce23 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -83,14 +83,10 @@ 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