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

Throw error on Taskfiles with nonexistent YAML keys #883

Closed
kovan opened this issue Oct 4, 2022 · 1 comment
Closed

Throw error on Taskfiles with nonexistent YAML keys #883

kovan opened this issue Oct 4, 2022 · 1 comment

Comments

@kovan
Copy link

kovan commented Oct 4, 2022

The task was not executing, and I was sitting there for a while, testing this, testing that, nothing. Very strange I thought. After a (long) while, I realised I was writing with incorrect syntax. Like this:

I had:

    backend-master:
        - deps: [build-backend, unittests-backend]
        - cmds:
            - task:  push-backend

And the correct syntax was:

    backend-master:
        deps: [build-backend, unittests-backend]
        cmds:
            - task: push-backend

Notice the spare dashes at "deps" and "cmds" in the first case?. That was it. But I got no error or warning message, just the task would not execute. So I thought a syntax check for the taskfile would be nice. That is my feature request.

Other than that really great tool, I use it daily, thank you.

And thank you for your time reading this.
Regards.

@andreynering andreynering added enhancement type: bug Something not working as intended. labels Jan 5, 2023
@andreynering andreynering changed the title Syntax check Throw error on Taskfiles with nonexistent YAML keys Jan 5, 2023
@pd93
Copy link
Member

pd93 commented Apr 25, 2024

Just tested this and it's working as intended in the latest version

@pd93 pd93 closed this as completed Apr 25, 2024
@pd93 pd93 removed type: enhancement type: bug Something not working as intended. labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants