You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected that variables declared in a taskfile have a scope only within the taskfile. But the example shows that it does not, and the behavior is not predictable.
It always prints the same value and this value is random selected:
➜ taskfile-test task included2:test
task: [included2:test] echo included2
included2
➜ taskfile-test task included2:test
task: [included2:test] echo included1
included1
➜ taskfile-test task -l
task: Available tasks for this project:
* included2:test: Test task that prints included2
* included2:test: Test task that prints included2
➜ taskfile-test task -l
task: Available tasks for this project:
* included1:test: Test task that prints included1
* included2:test: Test task that prints included1
I expect
➜ taskfile-test task included2:test
task: [included2:test] echo included2
included2
➜ taskfile-test task included1:test
task: [included1:test] echo included1
included1
➜ taskfile-test task -l
task: Available tasks for this project:
* included1:test: Test task that prints included1
* included2:test: Test task that prints included2
Description
Hello
I expected that variables declared in a taskfile have a scope only within the taskfile. But the example shows that it does not, and the behavior is not predictable.
It always prints the same value and this value is random selected:
I expect
Taskfile structure
./Taskfile.yaml
:./included1/Taskfile.yaml
:./included2/Taskfile.yaml
:Version
v3.41.0
Operating system
MacOS 14.5
Experiments Enabled
No response
Example Taskfile
The text was updated successfully, but these errors were encountered: