T
Task5mo ago
Leon

Static context issues

As I understand it, once a task command is executed, its environment context cannot be changed. This means I can't set a global variable from a task, which introduces difficulties when running tasks that install software, update $PATH, or modify other environment variables. I'm not sure what the workaround could be at this point. However, my main point is that it would be very helpful to have a shared environment between tasks.
1 Reply
andreynering
andreynering5mo ago
Hi @Leon, I'm actually not sure if we would want to add that behavior. That would improve the code complexity and add room for new bugs. Keep in mind that we need to take concurrency into account when implementing things, and sharing state between tasks might not play well with tasks running concurrently.
Want results from more Discord servers?
Add your server