helm-docs 1.13 has been switched in norwoodj/helm-docs@4a68682 to use go 1.22 and now it fails in pre-commit:
build attempt 1...
=> error
[INFO] Installing environment for https://github.com/norwoodj/helm-docs.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/opt/go/bin/go', 'install', './...')
return code: 1
stdout: (none)
stderr:
go: downloading go1.22 (linux/amd64)
go: download go1.22 for linux/amd64: toolchain not available
Check the log at /pc/pre-commit.log
While I can probably fix this on GitHub by installing newer go, I cannot do this on https://pre-commit.ci/. But I also have no clue how this is supposed to work.
If I knew that installing the matching go version is an expected thing to do, I might have found that. But the error message made me think that it should have been downloaded automatically, and I didn't really investigate that direction…
Activity
asottile commented on Mar 12, 2024
have you tried language_version ?
ci: configure language_version for helm-docs-built
nijel commented on Mar 12, 2024
No, but did it now, and it seems to have helped: https://results.pre-commit.ci/run/github/260481808/1710248967.AH_EddU3T-SaGsr6mFKXRQ Thanks.
asottile commented on Mar 12, 2024
might have been able to get to there from the docs: https://pre-commit.com/#golang
ci: configure language_version for helm-docs-built
nijel commented on Mar 12, 2024
If I knew that installing the matching go version is an expected thing to do, I might have found that. But the error message made me think that it should have been downloaded automatically, and I didn't really investigate that direction…