Skip to content

Commit af09f92

Browse files
aledbfclaude
andcommitted
build: pass the running Task to taskgate
go-tools 1c70756 made taskgate check that every workflow step names a task the Taskfile has, by running `task --list-all`; Task is a go.mod tool here, not on PATH, so the gate failed with 'exec: "task": executable file not found'. -task {{.TASK_EXE}} hands it the Task already running. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 9bf8419 commit af09f92

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Taskfile.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ tasks:
207207
- go tool refs
208208
- go tool mutate -stale-exempts
209209
- task: deadcode
210-
- go tool taskgate
210+
# The Task running this one, which taskgate asks for the task names a workflow step runs.
211+
- go tool taskgate -task {{.TASK_EXE}}
211212
- go tool sfw check
212213

213214
lint:go:

0 commit comments

Comments
 (0)