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
When I run multiple scripts concurrently, I get a data race when the global variables Packages and PackageTypes are accessed here and here.
I add and remove packages from env.Packages and env.PackageTypes before a script is executed. That's why I get a data race because the access to those global variables is not synchronised. I was able to fix this issue by allowing packages to be defined on an environment level – see pull request below.
This change enables environments to have a different set of
packages. Accessing a package can now be protected by the environment mutex.
Fixesmattn#358
When I run multiple scripts concurrently, I get a data race when the global variables Packages and PackageTypes are accessed here and here.
I add and remove packages from
env.Packages
andenv.PackageTypes
before a script is executed. That's why I get a data race because the access to those global variables is not synchronised. I was able to fix this issue by allowing packages to be defined on an environment level – see pull request below.Might be related to #34
The text was updated successfully, but these errors were encountered: