From 97fa0b295ea5c87b2b97ec1f1a002d2fa1d7c6bb Mon Sep 17 00:00:00 2001 From: FrenchGithubUser Date: Thu, 26 Mar 2026 16:53:34 +0100 Subject: [PATCH] chore: use `constraints.txt` file to force modules to use synapse's dependencies versions for their own dependencies this might not always work but will at least make the docker build fail completely instead of silently downgrading dependencies --- docker/Dockerfile-famedly | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile-famedly b/docker/Dockerfile-famedly index d7d52389cc..cba2f06d10 100644 --- a/docker/Dockerfile-famedly +++ b/docker/Dockerfile-famedly @@ -19,9 +19,11 @@ ARG FCS_VERSION # To avoid having to install git, pip install directly from the source repository using # it's auto generated zip file for the two non-pypa modules below. +RUN pip freeze > constraints.txt + RUN --mount=type=cache,target=/root/.cache/pip \ pip install setuptools \ - && pip install --no-warn-script-location \ + && pip install --no-warn-script-location -c constraints.txt \ synapse-token-authenticator==${STA_VERSION} \ synapse-s3-storage-provider \ synapse-invite-checker==${SIC_VERSION} \