Skip to content

executables not found by pre-commit run in github codespace #2778

@bbaassssiiee

Description

@bbaassssiiee

search you tried in the issue tracker

codespace

describe your issue

I was running pre-commit run -a in a github codespace terminal.
Reproducible in your browser by clicking [Use this Template] -> [Open in a codespace] on this page https://github.com/playingfield/ansible_role_web.

It craps out like this:

$ pre-commit run -a
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/adrienverge/yamllint.
[INFO] Initializing environment for https://github.com/robertdebock/pre-commit.
[INFO] Initializing environment for https://github.com/jumanjihouse/pre-commit-hooks.
[INFO] Initializing environment for https://github.com/PyCQA/flake8.
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/adrienverge/yamllint.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/PyCQA/flake8.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
check for added large files..............................................Failed
- hook id: check-added-large-files
- exit code: 1

Executable `check-added-large-files` not found

check for case conflicts.................................................Failed
- hook id: check-case-conflict
- exit code: 1

Executable `check-case-conflict` not found

check that executables have shebangs.................(no files to check)Skipped
check json...............................................................Failed
- hook id: check-json
- exit code: 1

Executable `check-json` not found

check for merge conflicts................................................Failed
- hook id: check-merge-conflict
- exit code: 1

Executable `check-merge-conflict` not found

detect private key.......................................................Failed
- hook id: detect-private-key
- exit code: 1

Executable `detect-private-key` not found

fix end of files.........................................................Failed
- hook id: end-of-file-fixer
- exit code: 1

Executable `end-of-file-fixer` not found

pre-commit --version

v3.1.0

.pre-commit-config.yaml

# https://pre-commit.com/hooks.html
default_language_version:
  python: python3.8
exclude: .venv
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.4.0
    hooks:
      - id: check-added-large-files
      - id: check-case-conflict
      - id: check-executables-have-shebangs
      - id: check-json
      - id: check-merge-conflict
      - id: detect-private-key
      - id: end-of-file-fixer
      - id: forbid-new-submodules
      - id: requirements-txt-fixer
      - id: trailing-whitespace

~/.cache/pre-commit/pre-commit.log (if present)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions