From 657e85634f2d1de94a6593bb0ed90e09d54432de Mon Sep 17 00:00:00 2001 From: Piotr Idzik <65706193+vil02@users.noreply.github.com> Date: Sat, 2 Sep 2023 19:00:54 +0200 Subject: [PATCH] Configure `clang-format-16` in gitpod (#4347) --- .gitpod.dockerfile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitpod.dockerfile b/.gitpod.dockerfile index e26e6b179..e10a44af6 100644 --- a/.gitpod.dockerfile +++ b/.gitpod.dockerfile @@ -1,11 +1,22 @@ FROM gitpod/workspace-java-17:2023-08-30-14-07-38 +ENV LLVM_SCRIPT="tmp_llvm.sh" + +RUN test ! -f "$LLVM_SCRIPT" \ + && wget https://apt.llvm.org/llvm.sh -O "$LLVM_SCRIPT" \ + && chmod +x "$LLVM_SCRIPT" + USER root -RUN apt-get update \ +RUN ./"$LLVM_SCRIPT" 16 \ + && apt-get update \ && apt-get install -y --no-install-recommends \ - clang-format=1:14.0-55~exp2 \ + clang-format-16=1:16.0.6~++20230710042027+7cbf1a259152-1~exp1~20230710162048.105 \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +RUN ln -s "$(command -v clang-format-16)" "/usr/bin/clang-format" + USER gitpod + +RUN rm "$LLVM_SCRIPT"