Skip to content

Conversation

@suricactus
Copy link

When the default package manager is set to uv and a repository uses pre-commit rule, one get's the following error:

$ pre-commit
[INFO] Installing environment for https://github.com/open-vcpkg/pre-commit.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Using pre-commit with uv 0.9.2 via pre-commit-uv 4.2.0
An unexpected error has occurred: CalledProcessError: command: ('/home/suricactus/.local/share/uv/tools/pre-commit/bin/uv', '--project', '/home/suricactus/work/opengisch/qfield', 'pip', 'install', '.')
return code: 1
stdout: (none)
stderr:
    Using Python 3.12.3 environment at: py_env-python3.12
      × Failed to build `vcpkg-precommit-hook @
      │ file:///home/suricactus/.cache/pre-commit/repos57o5_hu`
      ╰─▶ Package metadata name `vcpkg-precommit` does not match given name
          `vcpkg-precommit-hook`
Check the log at /home/suricactus/.cache/pre-commit/pre-commit.log

This project uses two different names for the same thing depending on the project file, see https://github.com/open-vcpkg/pre-commit/blob/main/setup.py#L4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant