-
Notifications
You must be signed in to change notification settings - Fork 349
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
Windows support #466
Windows support #466
Conversation
lib/cocoapods-core/source/manager.rb
Outdated
@@ -234,6 +234,11 @@ def update_search_index_if_needed(changed_spec_paths) | |||
# A hash containing changed specification paths for each source. | |||
# | |||
def update_search_index_if_needed_in_background(changed_spec_paths) | |||
if Gem.win_platform? | |||
update_search_index_if_needed(changed_spec_paths) | |||
exit |
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.
why does this exit?
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.
Copy-paste bug - since it's one of the last things happening during the update, didn't catch it. Fixing and pushing with rebase.
@segiddins - I have rebased and force-pushed a fix removing the spurious "exit" you have mentioned (I guess I should have waited to squash until after all the reviews :)) |
CHANGELOG.md
Outdated
@@ -4,6 +4,9 @@ | |||
|
|||
##### Enhancements | |||
|
|||
* Windows support - do not use fork when updating the index | |||
[David Airapetyan](https://github.com/davidair) |
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.
Fix indenting to match others and add the PR link line.
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.
LGTM with a test that verifies Process.fork
is never called if Gem.win_platform?
is true
Squashed all the commits into one, rebased to remove the merges |
Forks are not supported on windows - making sure we don't crash CocoaPods/CocoaPods#8189 has the rest of support
@@ -15,6 +15,10 @@ | |||
|
|||
##### Enhancements | |||
|
|||
* Windows support - do not use fork when updating the index |
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 was in the wrong spot. Updated to reflect correct release which was 1.7.0.beta.1
Forks are not supported on windows - making sure we don't crash