Open
Description
Devcontainer build failure
Description
The devcontainer Dockerfile contains errors that prevent the container from being automatically built.
Console log
=> ERROR [dev_container_auto_added_stage_label 3/3] RUN python3 -m pip i 2.7s
------
> [dev_container_auto_added_stage_label 3/3] RUN python3 -m pip install --upgrade pip && python3 -m pip install --no-cache-dir install -r /tmp/pip-tmp/requirements.txt && pipx install pre-commit ruff && pre-commit install:
0.572 Requirement already satisfied: pip in /usr/local/lib/python3.13/site-packages (25.0.1)
0.655 Collecting pip
0.709 Downloading pip-25.1.1-py3-none-any.whl.metadata (3.6 kB)
0.725 Downloading pip-25.1.1-py3-none-any.whl (1.8 MB)
0.830 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 20.8 MB/s eta 0:00:00
0.851 Installing collected packages: pip
0.852 Attempting uninstall: pip
0.854 Found existing installation: pip 25.0.1
0.888 Uninstalling pip-25.0.1:
1.210 Successfully uninstalled pip-25.0.1
1.956 Successfully installed pip-25.1.1
1.956 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
2.517 ERROR: Could not find a version that satisfies the requirement install (from versions: none)
2.622 ERROR: No matching distribution found for install
------
Dockerfile-with-features:7
--------------------
6 | COPY requirements.txt /tmp/pip-tmp/
7 | >>> RUN python3 -m pip install --upgrade pip \
8 | >>> && python3 -m pip install --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
9 | >>> && pipx install pre-commit ruff \
10 | >>> && pre-commit install
11 |
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c python3 -m pip install --upgrade pip && python3 -m pip install --no-cache-dir install -r /tmp/pip-tmp/requirements.txt && pipx install pre-commit ruff && pre-commit install" did not complete successfully: exit code: 1
Why fix it ?
It would be beneficial to fix this so that contributors can have a consistent, ready-to-use environment with all the CI/CD checking tools already installed (such as ruff and pre-commit). This would help reduce the number of pull requests that fail tests unnecessarily.