-
-
Notifications
You must be signed in to change notification settings - Fork 624
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
Incorrect/confusing include cycle detected
error message after a silly mistake
#1881
Comments
Hi @VinGarcia , You’re getting a In Lines 105 to 126 in fe09c01
The view of the graph LR;
Taskfile.yml-->|common|TaskfileCommon.yml;
TaskfileCommon.yml-->|GOBIN|Taskfile.yml;
|
I'm not sure if this is an issue that needs to be fixed, but perhaps we could consider preventing empty strings and null values in the path of includes if there’s no use case for them. |
includes: # This was the silly mistake, this should be `vars` not `includes`
GOBIN:
sh: echo $(go env GOPATH)/bin This should absolutely be generating an error when no |
@pd93 So, I think I can work on this. |
I did a silly mistake on a Taskfile and got a misleading message as a response, so it took me a while to figure out exactly what the issue was.
Minimum Reproducible example
I create two taskfiles in the same directory with the following names:
And
Then I tried running:
And the error message I got back was this:
I am not sure how easy it is to fix this issue and I understand this might not be a high priority bug, but I thought it would be worth mentioning anyway.
Great tool, thanks for making it and keeping it open source =]
The text was updated successfully, but these errors were encountered: