Open decleaver opened 4 months ago
Its expecting and reading in the root Tasks.yaml
will have to do some follow up testing but im not sure this is still an issue. I had to add create imports into multiple publish tasks that failed recently. 😅
Confirmed this is still an issue - tasks should probably be namespaced internally to not conflict with one another.
Environment
-tasks -- magic-import.yaml -- publish.yaml tasks.yaml
Steps to reproduce
To test run
uds run -f tasks/magic-import.yaml run-magic-root-task
tasks/magic-import.yaml is locally included in the root task
This says ERROR: Failed to run action: task name magical-working-task not found
That is expected behavior. Now run
uds run -f tasks/publish.yaml package --set FLAVOR=upstream
Expected Result:
An error about there being no task called
create-package
as it is not explicitly importedActual Result:
package gets created
Then also try
uds run -f tasks/publish.yaml package2 --set FLAVOR=upstream
This also shouldnt work but returns:
Then try
uds run -f tasks/publish.yaml package3 --set FLAVOR=upstream
That goes in some circular death loop, which makes sense.
Then try
uds run -f tasks/publish.yaml package4 --set FLAVOR=upstream
This works and also shouldnt: