This is an automated email from the ASF dual-hosted git repository.

eldrick pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 887257baf fix(docker): pin Poetry to 2.2.1 for Python 3.9 
compatibility (#8735)
887257baf is described below

commit 887257baf90445dba0535f80aa0bee7fb3e72215
Author: Rodrigo Silva <[email protected]>
AuthorDate: Mon Mar 30 19:21:08 2026 +0200

    fix(docker): pin Poetry to 2.2.1 for Python 3.9 compatibility (#8735)
    
    Poetry 2.3.0 dropped Python 3.9 support. Without cache the installer
    fetches the latest version (currently 2.3.2), which fails on the
    python:3.9-slim-bookworm base image. Pin to 2.2.1, the last release
    compatible with Python 3.9.
    
    Co-authored-by: Rodrigo Silva <[email protected]>
---
 backend/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/Dockerfile b/backend/Dockerfile
index 69cbeca7a..a8708c5e3 100644
--- a/backend/Dockerfile
+++ b/backend/Dockerfile
@@ -149,7 +149,7 @@ RUN python3 -m pip install --no-cache --upgrade pip 
setuptools && \
     python3 -m pip install --upgrade pip
 
 # Setup Python Poetry package manager
-RUN curl -sSL https://install.python-poetry.org | python3 -
+RUN curl -sSL https://install.python-poetry.org | python3 - --version 2.2.1
 ENV PATH="$PATH:/app/.local/bin"
 
 # Build Python plugins, make sure the scripts has execute permission

Reply via email to