-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Lazily initialise Xcode installation status #10945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Rather than pre-compute Xcode install path, version, and EULA status, compute and cache on demand.
|
Pre-factoring before making these calls async. |
| bool get isInstalled => _isInstalled; | ||
| bool get isInstalled { | ||
| if (xcodeSelectPath != null && xcodeSelectPath.isNotEmpty) | ||
| return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be true, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops - tried to get clever, realised it wouldn't work and missed a revert. Once this is in, asyncified and the process invocations extracted, we'll be able to easily add tests for these cases.
| if (!xcodeVersionRegex.hasMatch(xcodeVersionText)) | ||
| return false; | ||
| if (!eulaSigned) | ||
| return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't match the previous logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
This reverts commit bb8e2a7. Triggers a doctor failure on the Mac chromebots.
Rather than pre-compute Xcode install path, version, and EULA status, compute and cache on demand.
…lutter#10951) This reverts commit bb8e2a7. Triggers a doctor failure on the Mac chromebots.
Rather than pre-compute Xcode install path, version, and EULA status,
compute and cache on demand.