Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(chocolatey#2953) Store Cygwin rootDirectory in static field
Currently, ISourceRunner instances seem to be managed as transient. This is reasonable for many things, but it means we cannot rely on storing state in instance fields for ISourceRunner instances at the current time. This change ensures that the state data created by ensure_source_app_installed() can be kept around for the followup call to install_run() by storing it in a static field that all instances can make use of. We may want to discuss a design improvement/refactor to ensure that we aren't losing any other critical state data between these invocations for any other ISourceRunners.
- Loading branch information