Skip to content

[BUG] pip-tools-compile pre-commit hook does not work on windows #56642

@Ch3LL

Description

@Ch3LL

Description
pre-commit does not work on windows currently. Anyone developing on windows will run into this error

stderr:
    Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\Users\\jeaco\\AppData\\Local\\Temp\\pip-uninstall-1vpi1i28\\users\\user\\.cache\\pre-commit\\repo\\py_env-python3\\scripts\\pip.exe'

There is a current workaround to export SKIP=pip-tools-compile. This will skip the pre-commit tool pip-tools-compile and run the rest of pre-commit, but this still means that pip-tools-compile does not work on windows.

Setup
run git commit on windows or pre-commit run

Metadata

Metadata

Assignees

No one assigned

    Labels

    Windowsbugbroken, incorrect, or confusing behaviorseverity-low4th level, cosemtic problems, work around exists

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions