-
fix(ci): use pdm lock instead of pdm update in dependency workflow (#3755)
发布于
2026-05-01 10:40:04 +00:00 The workflow used
pdm update -u --no-sync --no-selfwhich caused
pdm lock --checkto fail in pre-commit CI. The-u(--unconstrained)
flag modifies pyproject.toml with relaxed version constraints, but the
workflow only commits pdm.lock — discarding those pyproject.toml changes.
Whenpdm lock --checkre-resolves against the original pyproject.toml,
it produces a different lockfile, causing the check to fail.Using
pdm lockfixes this because it uses the same resolution code path
aspdm lock --check, respects pyproject.toml constraints, and never
modifies pyproject.toml.下载附件