We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See this example Taskfile.yaml
version: '3' vars: BUILD_FLAGS: 'GOOS=linux GOARCH=amd64' tasks: build: cmds: - {{.BUILD_FLAGS}} go build
Result: Running task build fails with the following error:
task build
task: Failed to parse Taskfile.yaml: yaml: line 8: did not find expected '-' indicator
Expected behaviour: task build properly executing GOOS=linux GOARCH=amd64 go build
GOOS=linux GOARCH=amd64 go build
The text was updated successfully, but these errors were encountered:
You need to quote your command string:
version: '3' vars: BUILD_FLAGS: 'GOOS=linux GOARCH=amd64' tasks: build: cmds: - '{{.BUILD_FLAGS}} go build'
Edit: Some extra info on this: https://stackoverflow.com/questions/19109912/yaml-do-i-need-quotes-for-strings-in-yaml
Sorry, something went wrong.
No branches or pull requests
See this example Taskfile.yaml
Result: Running
task build
fails with the following error:Expected behaviour:
task build
properly executingGOOS=linux GOARCH=amd64 go build
The text was updated successfully, but these errors were encountered: