Skip to content

chore: configure clang-format-16 in gitpod #4347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .gitpod.dockerfile
Original file line number Diff line number Diff line change
@@ -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"