cache + virtualenv>=20 / python_venv + moving executables -> File not found: ... python · Issue #1353 · pre-commit/pre-commit · GitHub
Skip to content

cache + virtualenv>=20 / python_venv + moving executables -> File not found: ... python #1353

Description

@asottile

failure mode looks something like this:

Check for added large files..............................................Failed
- hook id: check-added-large-files
- exit code: 1

Executable `/Users/runner/.cache/pre-commit/repo14qw_y0i/py_env-python3.8/bin/python` not found

currently this is a common failure for github actions caches, there's ~2 ways to work around this:

  1. add $(which python) to the pre-commit cache key
  2. manually bump the pre-commit cache key

but pre-commit should more gracefully detect this in the healthy() function (which is designed to catch these sorts of system breakages)

Activity

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

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