slow pdm lock example
Author: dimblebyCreated Aug 19, 2023Updated Nov 10, 2025
Labels🐛 bug🧩 dependency resolution
- I have searched the issue tracker and believe that this is not a duplicate.
Make sure you run commands with -v flag before pasting the output.
Steps to reproduce
$ mkdir stackstac
$ cd stackstac
$ git clone [email protected]:gjoseph92/stackstac.git .
$ git rev-parse HEAD
e30ecf233ee42c1c98fcfbc5178ff105ba60760e
$ pdm --version
PDM, version 2.8.2
$ time pdm --lockActual behavior
I actually don't know how long this takes - it has been about forty minutes so far. But it's a long time.
Expected behavior
Faster locking.
Environment Information
# Paste the output of `pdm info && pdm info --env` below:
PDM version:
2.8.2
Python Interpreter:
/home/dch/stackstac/.venv/bin/python (3.10)
Project Root:
/home/dch/stackstac
Local Packages:
{
"implementation_name": "cpython",
"implementation_version": "3.10.12",
"os_name": "posix",
"platform_machine": "x86_64",
"platform_release": "5.15.90.1-microsoft-standard-WSL2",
"platform_system": "Linux",
"platform_version": "#1 SMP Fri Jan 27 02:56:13 UTC 2023",
"python_full_version": "3.10.12",
"platform_python_implementation": "CPython",
"python_version": "3.10",
"sys_platform": "linux"
}I actually found this one by looking for examples of poetry being slow, in the hope of finding something interesting that could be improved there. stackstac switched from poetry to pdm "because Poetry was taking multiple hours to lock dependencies".
However today it seems to be pdm that is taking a considerable time to lock dependencies, so I thought you might appreciate the example.
Source: pdm-project/pdm