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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidManifestError when doing a git commit #1733

Closed
MarvinVaillant opened this issue Mar 10, 2024 · 0 comments · Fixed by #1737
Closed

InvalidManifestError when doing a git commit #1733

MarvinVaillant opened this issue Mar 10, 2024 · 0 comments · Fixed by #1737

Comments

@MarvinVaillant
Copy link

I checked out the repo as usual and followed the setup step make setup. If I then execute git commit -m "my commit message". I receive following error from git:

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

I'm running MacOS 14.2.1 with git version 2.43.0.

Is it something that I did wrong or just an outdated script?

MetroMarv pushed a commit to MetroMarv/uberspace-lab that referenced this issue Mar 17, 2024
Upgrade pre-commit from version 2.13.* to 3.6.* to avoid the following
error:

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

Fixes Uberspace#1733
nichtmax pushed a commit that referenced this issue Apr 23, 2024
* Use version 3.6.* of pre-commit to avoid InvalidManifestError

Upgrade pre-commit from version 2.13.* to 3.6.* to avoid the following
error:

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

Fixes #1733

* Use supported version by CI pipeline

---------

Co-authored-by: Marvin Rensing <marvin.rensing@openvalue.de>
Co-authored-by: MetroMarv <9006725+MetroMarv@users.noreply.github.com>
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 a pull request may close this issue.

1 participant