Closed MustansirS closed 7 months ago
I tried to create a PR to fix this issue but I couldn't push to a branch I made. Are open source contributions not allowed?
Having the same issue! We could specify language_version
in our own .pre-commit-hooks.yaml
but it is not ideal to have that set on our end, because if there is a future update that breaks buf then we will have to update language_version
on our end.
I tried to create a PR to fix this issue but I couldn't push to a branch I made. Are open source contributions not allowed?
Like all OSS projects, to make a PR, you need to create a fork.
I previously had
go@1.19
installed on my system. Since golang version1.19
is no longer supported andbuf
requires golang1.20
I was getting this error when running pre-commit hooks:After investigating
pre-commit
's own codebase, whats going on here is that sincelanguage_version
is not specified it gets set either tosystem
if you have golang installed on your system (which was the case for me), ordefault
in which case it installs the latest go version.Since buf has deprecated use of golang 1.19 I would suggest specifying the
language_version
in.pre-commit-hooks.yaml
to satisfy the dependency