-
-
Notifications
You must be signed in to change notification settings - Fork 763
Open
Copy link
Labels
area: parserChanges related to parsing Taskfiles.Changes related to parsing Taskfiles.good first issueIssues that are good for first-time contributors to pick up.Issues that are good for first-time contributors to pick up.
Description
- Task version: v3.38.0 (h1:O7kgA6BfwktXHPrheByQO46p3teKtRuq1EpGnFxNzbo=)
- Operating system: MacOS M1 Sonoma
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:
# Taskfile.yml
version: '3'
includes:
common: ./TaskfileCommon.yml
tasks:
test:
cmds:
- task: common:testAnd
# TaskfileCommon.yml
version: '3'
includes: # This was the silly mistake, this should be `vars` not `includes`
GOBIN:
sh: echo $(go env GOPATH)/bin
tasks:
test:
cmds:
- "{{.GOBIN}}/richgo test ./..."Then I tried running:
task common:test
And the error message I got back was this:
task: include cycle detected between /Users/vingarcia/temp/tfile/Taskfile.yml <--> /Users/vingarcia/temp/tfile/TaskfileCommon.yml
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 =]
Metadata
Metadata
Assignees
Labels
area: parserChanges related to parsing Taskfiles.Changes related to parsing Taskfiles.good first issueIssues that are good for first-time contributors to pick up.Issues that are good for first-time contributors to pick up.