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
{{ message }}
Repository navigation
The script to install golang env requires golang #1449
If one of your developers doesn’t have node installed but modifies a JavaScript file, pre-commit automatically handles downloading and building node to run eslint without root.
I would assume golang would be installed automatically in a similar manner.
Activity
asottile commentedon May 11, 2020
So pre-commit has various levels of language support currently. This is roughly outlined in the contributing guidelines.
the example language there (
node) is a "first class" language which pre-commit will bootstrap if it doesn't exist.gois unfortunately currently in the "second class" language type which means that the user needs to have a go toolchain set up already.a patch to improve this would be appreciated, but it's understandable that some of the languages won't be bootstrappable from scratch.
xenowits commentedon Jan 25, 2022
Hi @asottile . I'hv go toolchain already setup but I'm unable to use go repo hooks (https://github.com/corverroos/fiximports). My local
.pre-commit-config.yamlhas:Says
AssertionError: For now, pre-commit requires system-installed golang. Can you help?asottile commentedon Jan 25, 2022
don't comment on old issues, especially when they are not your problem
make a new issue and fill out the issue template