Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error has occurred: InvalidManifestError #90

Closed
alexisottonkpler opened this issue Oct 17, 2023 · 3 comments
Closed

An error has occurred: InvalidManifestError #90

alexisottonkpler opened this issue Oct 17, 2023 · 3 comments

Comments

@alexisottonkpler
Copy link

alexisottonkpler commented Oct 17, 2023

Hey 馃憢

since a few weeks, I have an error when running my pre-commit :

An error has occurred: InvalidManifestError: 
==> File /Users/alexisotton/.cache/pre-commit/repoiey05pzu/.pre-commit-hooks.yaml
==> At Hook(id='forbid-crlf')
==> At key: stages
==> At index 0
=====> Expected one of commit, commit-msg, manual, merge-commit, post-checkout, post-commit, post-merge, post-rewrite, prepare-commit-msg, push but got: 'pre-commit'

Here are my env infos :

pre-commit --version: 3.5.0
git --version: 2.24.3
python3 --version: Python 3.11.6
sys.platform: MacOS monterey 12.6.7

Here is my pre-commit-config.yaml part in error :

- repo: https://github.com/Lucas-C/pre-commit-hooks
    rev: v1.5.4
    hooks:
      - id: forbid-crlf
        exclude_types: [svg]
      - id: remove-crlf
        exclude_types: [svg]

I've looked at this similar issue, but my pre-commitversion look good

Thank's for your help

@Lucas-C
Copy link
Owner

Lucas-C commented Oct 17, 2023

Hi @alexisottonkpler

Have you see this previous issue?
#83 (comment)

@alexisottonkpler
Copy link
Author

yes. As I understand, pre-commit has to be upgraded to latest version (3.3.3 in this issue), mine is 3.5.0

@lordfolken
Copy link

Debian 12 only supplies pre-commit 3.0.4
I can work around it, but still a lot of things will break, that don't specifically install the latest version.

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

No branches or pull requests

3 participants