You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new pre-commit config specifies v18.1.7˙ of clang-format`.
When installing hooks on a new repo, you get this error:
pre-commit install --install-hooks
pre-commit installed at .git/hooks/pre-commit
Running in migration mode with existing hooks at .git/hooks/commit-msg.legacy
Use -f to use only pre-commit.
pre-commit installed at .git/hooks/commit-msg
An error has occurred: InvalidManifestError:
==> File /home/tjaz/.cache/pre-commit/repo61yo3iqm/.pre-commit-hooks.yaml
==> At Hook(id='clang-format')
==> At key: types_or
==> At index 10
=====> Type tag 'metal' is not recognized. Try upgrading identify and pre-commit?
Check the log at /home/tjaz/.cache/pre-commit/pre-commit.log
The message is somewhat helpful, it says: Try upgrading identify and pre-commit?
Turns out the "metal" type was only introduced in v2.6 of the identify lib (part of the pre-commit project)
Describe the bug
The new pre-commit config specifies
v18.1.7˙ of
clang-format`.When installing hooks on a new repo, you get this error:
The message is somewhat helpful, it says:
Try upgrading identify and pre-commit?
Turns out the "metal" type was only introduced in v2.6 of the identify lib (part of the pre-commit project)
The solution is to run:
pre-commit itself wrongy specifies
identify>=1.0.0
, so just updating pre-commit does not pull the required version.The tooling section of the template readme links to the pre-commit install page, which does not mention the identify lib...
I suggest the tooling section directly specifies the 2 commands:
@MarkoSagadin Thoughts?
The text was updated successfully, but these errors were encountered: