mirror of
https://github.com/go-task/task.git
synced 2025-12-24 23:49:24 +01:00
refactor: decouple fingerprinting from executor (#1039)
This commit is contained in:
18
Taskfile.yml
18
Taskfile.yml
@@ -27,6 +27,24 @@ tasks:
|
||||
GIT_COMMIT:
|
||||
sh: git log -n 1 --format=%h
|
||||
|
||||
generate:
|
||||
desc: Runs Go generate to create mocks
|
||||
aliases: [gen, g]
|
||||
deps: [install:mockgen]
|
||||
sources:
|
||||
- "internal/fingerprint/checker.go"
|
||||
generates:
|
||||
- "internal/fingerprint/checker_mock.go"
|
||||
cmds:
|
||||
- mockgen -source=internal/fingerprint/checker.go -destination=internal/fingerprint/checker_mock.go -package=fingerprint
|
||||
|
||||
install:mockgen:
|
||||
desc: Installs mockgen; a tool to generate mock files
|
||||
status:
|
||||
- command -v mockgen &>/dev/null
|
||||
cmds:
|
||||
- go install github.com/golang/mock/mockgen@latest
|
||||
|
||||
mod:
|
||||
desc: Downloads and tidy Go modules
|
||||
cmds:
|
||||
|
||||
Reference in New Issue
Block a user