on main help sign in
chore(taskfile): avoid compiling when not needed
commitf962087445719a88cdf6371fc977ea30acecf615 authorAndrey Nering <andreynering@users.noreply.github.com> dateTue 10 Feb 2026, 11:06 (8 months ago) parentdb0ce0b
2 files changed+8−1
.gitignore+1 Taskfile.yaml+7−1
.gitignore+1
@@ -50,3 +50,4 @@ Thumbs.db
5050manpages/
5151completions/crush.*sh
5252.prettierignore
53+.task
Taskfile.yaml+7−1
@@ -46,8 +46,11 @@ tasks:
4646 LDFLAGS: '{{if .VERSION}}-ldflags="-X github.com/charmbracelet/crush/internal/version.Version={{.VERSION}}"{{end}}'
4747 cmds:
4848 - "go build {{if .RACE}}-race{{end}} {{.LDFLAGS}} ."
49+ sources:
50+ - ./**/*.go
51+ - go.mod
4952 generates:
50− - crush
53+ - crush{{exeExt}}
5154
5255 run:
5356 desc: Run build
@@ -91,6 +94,9 @@ tasks:
9194 cmds:
9295 - task: fetch-tags
9396 - go install {{.LDFLAGS}} -v .
97+ sources:
98+ - ./**/*.go
99+ - go.mod
94100
95101 profile:cpu:
96102 desc: 10s CPU profile