Skip to content

prek fails to install check-added-large-files on Windows #3355

Description

@adamtheturtle

What happens

The build (3.14, windows-latest, pre-commit) job fails during hook installation:

error: Failed to install hook `check-added-large-files`
  caused by: Command `uv.exe pip install --project / --directory C:\Users\runneradmin\AppData\Local\prek\repos\0321a11f464e05f4 .` exited with an error:
error: C:\Users\runneradmin\AppData\Local\prek\repos\0321a11f464e05f4 does not appear to be a Python project, as neither `pyproject.toml` nor `setup.py` are present in the directory
prek exited with code 2

Note the --project / argument, which does not look like an intended path.

Why it matters

This blocks pull requests from merging. #3324 is a plain Dependabot bump of a development dependency, and this is the only failure standing between it and a merge.

Context

Seen while working through the open pull requests. That branch hit three different infrastructure failures across three runs, each unrelated to its own diff:

  1. pages failing on a stale merge base, cleared by a rebase
  2. linkcheck failing on external redirects (developer.vuforia.com, a PEP URL and an RFC URL), with warnings treated as errors
  3. this one

Only the third is still failing. The linkcheck one is likely worth separating out, since those redirects are permanent and will keep recurring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions