Skip to content

Commit 361acc3

Browse files
authored
fix(go-generate): fixed the hook to call the right script (#33)
1 parent 3748212 commit 361acc3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
pass_filenames: false
7373
- id: go-generate
7474
name: 'go generate'
75-
entry: pre-commit-hooks/go-build.sh
75+
entry: pre-commit-hooks/go-generate.sh
7676
types: [go]
7777
language: 'script'
7878
description: "Runs `go generate`. Requires golang: https://go.dev/doc/install"

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [1.2.0] Unreleased
4+
5+
### Bug Fixes
6+
* **go generate:** Hook was calling `pre-commit-hooks/go-build.sh` script. Changed to `pre-commit-hooks/go-generate.sh`.
7+
38
## [1.1.3](https://github.com/bhundven/golang-pre-commit/compare/v1.1.2...v1.1.3) (2025-02-22)
49

510

0 commit comments

Comments
 (0)