aboutsummaryrefslogtreecommitdiff
path: root/ci/lint
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-09-28 19:58:13 +0200
committerMacroFake <falke.marco@gmail.com>2022-09-28 19:58:13 +0200
commitd8ded8bc089385c63de37a9f4ba471a4d78b30f7 (patch)
tree5d9d97253c34eb1959a32a68cd0f65d1d1adf7d4 /ci/lint
parenteeac05aa2251aee22888000ec78f6143f28b4d23 (diff)
downloadbitcoin-d8ded8bc089385c63de37a9f4ba471a4d78b30f7.tar.xz
ci: Use git2.34 for lint task
Diffstat (limited to 'ci/lint')
-rwxr-xr-xci/lint/04_install.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/ci/lint/04_install.sh b/ci/lint/04_install.sh
index 25787ce41c..2b57411c3f 100755
--- a/ci/lint/04_install.sh
+++ b/ci/lint/04_install.sh
@@ -8,6 +8,13 @@ export LC_ALL=C
${CI_RETRY_EXE} apt-get update
${CI_RETRY_EXE} apt-get install -y clang-format-9 python3-pip curl git gawk jq
+(
+ # Temporary workaround for https://github.com/bitcoin/bitcoin/pull/26130#issuecomment-1260499544
+ # Can be removed once the underlying image is bumped to something that includes git2.34 or later
+ sed -i -e 's/bionic/jammy/g' /etc/apt/sources.list
+ ${CI_RETRY_EXE} apt-get update
+ ${CI_RETRY_EXE} apt-get install -y --reinstall git
+)
update-alternatives --install /usr/bin/clang-format clang-format "$(which clang-format-9 )" 100
update-alternatives --install /usr/bin/clang-format-diff clang-format-diff "$(which clang-format-diff-9)" 100