Are variable unique across all imports ?
Hello,
I notice that if 2 task have the same global variable but are imported from 2 different file, the resolution of variable is random.
Execute
watch -c 'task foo'
I am expectingIs this expected or a bug ?foo
but the result of.NAME
is random, eitherfoo
orbar
it's not deterministic.
2 Replies
Hello !
Indeed variables are global. We have discussions about changing this in the next major version. (You can follow : https://github.com/go-task/task/issues/2034 / https://github.com/go-task/task/issues/1030 / https://github.com/go-task/task/issues/1030)
thank you, this was so frustrating