You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @jakubledl. Looks like a quotation issue to me. YAML is sensitive to strings when values begin or contain certain characters. In general, it's best to quote them to stop this issue:
version: 3tasks:
install-bins:
cmds:
- for:
- google.golang.org/protobuf/cmd/protoc-gen-go
- google.golang.org/grpc/cmd/protoc-gen-go-grpctask: install-binvars:
BIN: "{{.ITEM}}"# <-- Quoting this value fixes the issueinstall-bin:
internal: truecmds:
- echo {{.BIN}}
There is some more detailed information on YAML strings and when you should quote them in this StackOverflow post.
Task version: 3.33.1
(installed via homebrew)Following the documentation sample at https://taskfile.dev/usage/#looping-over-tasks.
Given the following
Taskfile.yml
:running
task install-bins
gives the following:Modyfing the file as follows (not touching line 6 at all):
gives the expected result:
The text was updated successfully, but these errors were encountered: