Task fails when using "time" in the cmd #67
Labels
dep: mvdan/sh
Issues related to the upstream interpreter used by Task.
type: bug
Something not working as intended.
I have a Taskfile that's failing to run, despite that it most likely should. It looks like this:
build: cmds: - time go build -i
Which causes it to throw this error:
task: Failed to run task "build": 1:1: unhandled command node: *syntax.TimeClause
It looks like mvdan/sh is intercepting "time", assuming it's the shell keyword, and expecting something to happen with that.
A short workaround if anyone else needs it is to change
time go build -i
to$(which time) go build -i
. It will change you from using the shell keyword time to the system's time binary, which is much uglier, but it gets the job done.The text was updated successfully, but these errors were encountered: