Closed gabrielhdt closed 1 year ago
Just to be sure that we reset the whole thing, can you:
$ rm .git/hooks/*
$ rm .pre-commit-config.yaml
$ direnv reload
(or leave and enter nix develop
again if you don't rely on direnv
)
and then try again?
Ah I wasn't in a nix develop
!
It works with nix develop .#ci
at least.
I think it is actually a known problem of cachix/pre-commit-hooks.nix
: it is good at installing hooks, but not so good at uninstalling them, so you end up in inconsistent states if you're not in a world managed by cachix/pre-commit-hooks.nix
. Not sure if there is much we can do about this, though.
When I want to commit, I receive the message
To reproduce
Environment