Skip to content

Commit 6f47876

Browse files
Use name tool builds as when installed from source
This enables using pre-commit's native golang support to install and manage talisman instead of requiring users to install it on their systems. Ideally we should fix talisman to build an executable named 'talisman' rather than 'cmd'. ref: https://stackoverflow.com/a/68803356 Authored-by: Owen Nelson <[email protected]>
1 parent 7167d6b commit 6f47876

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.pre-commit-hooks.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
- id: talisman-commit
22
name: talisman
3-
entry: talisman --githook pre-commit
3+
entry: cmd --githook pre-commit
44
stages: [pre-commit]
55
# talisman currently discovers files by itself and does not take them on the cli
66
pass_filenames: false
77
types: [text]
88
language: golang
9+
minimum_pre_commit_version: 3.2.0
910

1011
- id: talisman-push
1112
name: talisman
12-
entry: talisman --githook pre-push
13+
entry: cmd --githook pre-push
1314
stages: [pre-push]
1415
# talisman currently discovers files by itself and does not take them on the cli
1516
pass_filenames: false
1617
types: [text]
1718
language: golang
19+
minimum_pre_commit_version: 3.2.0

0 commit comments

Comments
 (0)