发布

  • fix(ci): use pdm lock instead of pdm update in dependency workflow (#3755)

    frostbyte_neo 发布于 2026-05-01 10:40:04 +00:00

    The workflow used pdm update -u --no-sync --no-self which caused
    pdm lock --check to 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.
    When pdm lock --check re-resolves against the original pyproject.toml,
    it produces a different lockfile, causing the check to fail.

    Using pdm lock fixes this because it uses the same resolution code path
    as pdm lock --check, respects pyproject.toml constraints, and never
    modifies pyproject.toml.

    下载附件