Skip to content
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

Merged
merged 1 commit into from
Nov 6, 2018
Merged

Windows support #466

merged 1 commit into from
Nov 6, 2018

Conversation

davidair
Copy link
Contributor

Forks are not supported on windows - making sure we don't crash

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does this exit?

Copy link
Contributor Author

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.

@davidair
Copy link
Contributor Author

@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)
Copy link
Member

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.

Copy link
Member

@amorde amorde left a 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

@davidair
Copy link
Contributor Author

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
@dnkoutso dnkoutso added this to the 1.7 milestone Nov 6, 2018
@@ -15,6 +15,10 @@

##### Enhancements

* Windows support - do not use fork when updating the index
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants