Skip to content

Remove subprocess gem#10492

Merged
zachmargolis merged 1 commit intomainfrom
margolis-remove-subprocess-gem
Apr 24, 2024
Merged

Remove subprocess gem#10492
zachmargolis merged 1 commit intomainfrom
margolis-remove-subprocess-gem

Conversation

@zachmargolis
Copy link
Contributor

  • Only used in one place, easy to check response status

  • Kernel#system returns true/false, we can just check that and throw an error as needed

- Only used in one place, easy to check response status

changelog: Internal, Source code, Remove dependency on subprocess gem
@zachmargolis zachmargolis requested a review from a team April 23, 2024 21:03
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

LGTM 👍

I was trying to find if there was any meaningful difference between system and Process (what subprocess uses internally), though I'm assuming it's functionally equivalent for how we're using it here.

@zachmargolis
Copy link
Contributor Author

LGTM 👍

I was trying to find if there was any meaningful difference between system and Process (what subprocess uses internally), though I'm assuming it's functionally equivalent for how we're using it here.

The difference was that Subprocess throws an error on failure instead of returning false

@zachmargolis zachmargolis merged commit a2c18a1 into main Apr 24, 2024
@zachmargolis zachmargolis deleted the margolis-remove-subprocess-gem branch April 24, 2024 13:13
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.

3 participants