Skip to content

Commit

Permalink
Modified module hooks to trigger on go.mod changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TekWizely committed Jul 2, 2019
1 parent 7a9cc10 commit b586112
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- id: go-build-mod
name: 'go-build-mod'
entry: go-build-mod.sh
types: [go]
files: '(\.go$)|(\bgo\.mod$)'
language: 'script'
description: "Run 'cd $(mod_root $FILE); go build ./...' for each staged .go file"
pass_filenames: true
Expand Down Expand Up @@ -91,7 +91,7 @@
- id: go-test-mod
name: 'go-test-mod'
entry: go-test-mod.sh
types: [go]
files: '(\.go$)|(\bgo\.mod$)'
language: 'script'
description: "Run 'cd $(mod_root $FILE); go test ./...' for each staged .go file"
pass_filenames: true
Expand Down Expand Up @@ -189,7 +189,7 @@
- id: go-vet-mod
name: 'go-vet-mod'
entry: go-vet-mod.sh
types: [go]
files: '(\.go$)|(\bgo\.mod$)'
language: 'script'
description: "Run 'cd $(mod_root $FILE); go vet ./...' for each staged .go file"
pass_filenames: true
Expand Down Expand Up @@ -371,7 +371,7 @@
- id: golangci-lint-mod
name: 'golangci-lint-mod'
entry: golangci-lint-mod.sh
types: [go]
files: '(\.go$)|(\bgo\.mod$)'
language: 'script'
description: "Run 'cd $(mod_root $FILE); golangci-lint run ./...' for each staged .go file"
pass_filenames: true
Expand All @@ -387,7 +387,7 @@
- id: golangci-lint-mod-fix
name: 'golangci-lint-mod-fix'
entry: golangci-lint-mod-fix.sh
types: [go]
files: '(\.go$)|(\bgo\.mod$)'
language: 'script'
description: "Run 'cd $(mod_root $FILE); golangci-lint run --fix ./...' for each staged .go file"
pass_filenames: true
Expand Down

0 comments on commit b586112

Please sign in to comment.