I did a Talisman setup for my project repository and now I am unable to commit changes to a branch. It aborts with the following error. Please help!
[INFO] Installing environment for https://github.com/thoughtworks/talisman.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('go', 'get', './...')
return code: 1
expected return code: 0
stdout:
Executable `go` not found
stderr: (none)
for whatever reason it looks like
talismanincorrectly installs as an executable namedcmdinstead oftalismanwhen installed from sourceI would suggest sending a pull request to correct this code here to use
entry: cmd --githook pre-commit(as well as below in that file)a workaround is to override the incorrect value directly in your configuration:
this seems to have regressed at some point, perhaps during a refactor / reorganization of their code -- probably in this commit
disclaimer: I created pre-commit