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
Somehow git hooks were not registered after removing .git/hooks, crate dependency. So removed cargo cache, removed project and pulled it back now its working but getting error that config file is not valid
I'm using workspace feature, which contains one binary crate and binary crate itself depends on rusty-hook and rust-hook.toml file is present in workspace root directory.
Tried removing environment variables as well but getting same error.
Error:
Invalid rusty-hook config file
Configured hook command failed
pre-push hook rejected
error: failed to push some refs to 'gitlab.com:
The text was updated successfully, but these errors were encountered:
sudhirdhumal289
changed the title
Not working when - Removed hooks from git directory and then re-added package in cargo.toml
Invalid rusty-hook config file
Dec 25, 2021
You are using the latest released (and usable) version published on crates.io, v0.11.2, however, you are trying to use a the hook-as-array feature that does not exist in your version; the array support was added in the unusable, unreleased v0.12.0 (https://github.com/swellaby/rusty-hook/blob/master/CHANGELOG.md#added, refs #171)
Environment Details
Description
Somehow git hooks were not registered after removing .git/hooks, crate dependency. So removed cargo cache, removed project and pulled it back now its working but getting error that config file is not valid
I'm using workspace feature, which contains one binary crate and binary crate itself depends on rusty-hook and rust-hook.toml file is present in workspace root directory.
.rusty-hook.toml
file contents:Tried removing environment variables as well but getting same error.
Error:
The text was updated successfully, but these errors were encountered: