swellaby / rusty-hook

git hook manager, geared toward Rust projects
MIT License
206 stars 11 forks source link

Hooks fail when using toml array syntax for multi-commands in rusty-hook.toml #151

Closed simon-amadeus closed 3 years ago

simon-amadeus commented 3 years ago

Environment Details

Description

Whenever I use the multi-command syntax using toml arrays, rusty-hook fails with the following output:

$git commit
Invalid rusty-hook config file
Configured hook command failed
pre-commit hook rejected

This happens regardless, of the trigger type (pre-commit, pre-push), and the executed commands. As a workaround I am now using && to chain them into a single command.

calebcartwright commented 3 years ago

Hi thanks for using the tool and reaching out, but going to close this. Support for array syntax in the config file was added in the unreleased v0.12.0 which is why it's not available for you in v0.11.2 (which is the latest released & supported version).

137 covers updating the documentation, and hopefully once #143 lands that will be a bit more clear.

webbertakken commented 1 year ago

@calebcartwright

Hi thanks for using the tool and reaching out, but going to close this. Support for array syntax in the config file was added in the unreleased v0.12.0 which is why it's not available for you in v0.11.2 (which is the latest released & supported version).

137 covers updating the documentation, and hopefully once #143 lands that will be a bit more clear.

Any chance you could release v0.12.0?