From d442b830e08611d3dfeed33a1db98ccfe82b01e4 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 8 Sep 2023 22:54:50 +0300
Subject: [PATCH] pre-commit image: Lock Cython to <3.

Needed for PyYAML<6.
---
 images/pre-commit/Dockerfile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/images/pre-commit/Dockerfile b/images/pre-commit/Dockerfile
index 835a4db..55e50ba 100644
--- a/images/pre-commit/Dockerfile
+++ b/images/pre-commit/Dockerfile
@@ -12,6 +12,8 @@ RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | \
         python3-setuptools \
         python3-venv \
     && \
+    export PIP_CONSTRAINT=/tmp/constraint.txt && \
+    echo 'Cython < 3.0' > "$PIP_CONSTRAINT" && \
     python3 -m pip install --no-cache-dir --break-system-packages \
         docker-compose \
         pipenv \
-- 
GitLab