Skip to content

Commit 657e856

Browse files
authored
Configure clang-format-16 in gitpod (TheAlgorithms#4347)
1 parent f010a47 commit 657e856

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.gitpod.dockerfile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
FROM gitpod/workspace-java-17:2023-08-30-14-07-38
22

3+
ENV LLVM_SCRIPT="tmp_llvm.sh"
4+
5+
RUN test ! -f "$LLVM_SCRIPT" \
6+
&& wget https://apt.llvm.org/llvm.sh -O "$LLVM_SCRIPT" \
7+
&& chmod +x "$LLVM_SCRIPT"
8+
39
USER root
410

5-
RUN apt-get update \
11+
RUN ./"$LLVM_SCRIPT" 16 \
12+
&& apt-get update \
613
&& apt-get install -y --no-install-recommends \
7-
clang-format=1:14.0-55~exp2 \
14+
clang-format-16=1:16.0.6~++20230710042027+7cbf1a259152-1~exp1~20230710162048.105 \
815
&& apt-get clean \
916
&& rm -rf /var/lib/apt/lists/*
1017

18+
RUN ln -s "$(command -v clang-format-16)" "/usr/bin/clang-format"
19+
1120
USER gitpod
21+
22+
RUN rm "$LLVM_SCRIPT"

0 commit comments

Comments
 (0)