Skip to content
New issue

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

Property silent is not allowed when using "for_call" #1385

Closed
iainvm opened this issue Oct 30, 2023 · 0 comments · Fixed by #1386
Closed

Property silent is not allowed when using "for_call" #1385

iainvm opened this issue Oct 30, 2023 · 0 comments · Fixed by #1386
Labels
area: json schema Changes related to the JSON schema.

Comments

@iainvm
Copy link
Contributor

iainvm commented Oct 30, 2023

  • Task version: v3.28.0
  • Operating system: Linux
  • Experiments enabled: None

Schema linting says that silent can't be used when using for in a cmds element

Example:

    cmds:
      - for: { var: MODULES, as: MODULE }
        silent: true
        cmd: |
          cd "{{.MODULE}}"
          echo -e "\033[1;32mTidying: {{.MODULE}}\033[0m"
          go mod tidy

This will complain that Property silent is not allowed.yaml-schema: Taskfile config even though it's valid
image

Update to schema.json is needed to allow this

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Oct 30, 2023
@pd93 pd93 added type: bug Something not working as intended. area: json schema Changes related to the JSON schema. and removed state: needs triage Waiting to be triaged by a maintainer. labels Oct 30, 2023
@pd93 pd93 removed the type: bug Something not working as intended. label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: json schema Changes related to the JSON schema.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants