Skip to content

Commit

Permalink
Try adding a language version to the pre-commit hook to see if that'll
Browse files Browse the repository at this point in the history
allow pre-commit to bootstrap the go version for us.
  • Loading branch information
JeffFaer committed Feb 6, 2024
1 parent e1b107b commit 8db5d91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ repos:
hooks:
- id: keep-sorted
name: keep-sorted
language: system
entry: go
args: [run, .]
language: golang
# Remember to also update language_version in .pre-commit-hooks.yaml!
language_version: 1.21.6
entry: go run .
- repo: https://github.com/pre-commit/pre-commit
rev: v3.6.0
hooks:
- id: validate_manifest
1 change: 1 addition & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
- id: keep-sorted
name: keep-sorted
language: golang
language_version: 1.21.6
entry: keep-sorted

0 comments on commit 8db5d91

Please sign in to comment.