Use process over os for backwards compatibility. #77
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
os
was added in Node 16. Even though we specify that we run on Node 16 and it is the oldest currently supported release upstream, self-host runners may not be properly configured to provide the same environment as GitHub hosted runners. So this switches to usingprocess
for greater backwards compatibility.The drawback to this approach is that
os
reports information about the actual operating system whileprocess
reports information about the node binary itself. Though in most cases that should be fine.Closes: #76